commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 01/19: libdiskfs: fix error handling


From: Samuel Thibault
Subject: [hurd] 01/19: libdiskfs: fix error handling
Date: Wed, 10 Aug 2016 00:05:49 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 0ab3825f250486453892e3e18a702a44538bff6d
Author: Justus Winter <address@hidden>
Date:   Sun May 22 00:43:19 2016 +0200

    libdiskfs: fix error handling
    
    * libdiskfs/dir-rmdir.c (diskfs_S_dir_rmdir): Initialize 'np'.
---
 libdiskfs/dir-rmdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libdiskfs/dir-rmdir.c b/libdiskfs/dir-rmdir.c
index 83ec37b..8a29979 100644
--- a/libdiskfs/dir-rmdir.c
+++ b/libdiskfs/dir-rmdir.c
@@ -25,7 +25,7 @@ diskfs_S_dir_rmdir (struct protid *dircred,
                    char *name)
 {
   struct node *dnp;
-  struct node *np;
+  struct node *np = NULL;
   struct dirstat *ds = alloca (diskfs_dirstat_size);
   error_t error;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]