blob: 8bed4a0e59dea65fc9ac0d1cfa5bed50e4a1ae4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 0ab3825f250486453892e3e18a702a44538bff6d Mon Sep 17 00:00:00 2001
From: Justus Winter <justus@gnupg.org>
Date: Sun, 22 May 2016 00:43:19 +0200
Subject: [PATCH hurd 1/2] 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;
--
2.1.4
|