From d83c3a5b7d2fa057fc8f39707733669b7dece8cc Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Wed, 13 Feb 2013 21:54:01 +0100 Subject: [PATCH] afpd/volume: avoid read of unitialized pointer Reported by Coverity as CID #980994. --- etc/afpd/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c index 88677155..9c7eb2bd 100644 --- a/etc/afpd/volume.c +++ b/etc/afpd/volume.c @@ -673,7 +673,7 @@ int afp_openvol(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t size_t namelen; uint16_t bitmap; char *vol_uname; - char *vol_mname; + char *vol_mname = NULL; char *volname_tmp; ibuf += 2; -- 2.39.2