git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1fe877
)
util: Don't use the pid ret value uninitialized.
author
Andreas Schneider
<asn@samba.org>
Thu, 6 Dec 2012 15:02:57 +0000
(16:02 +0100)
committer
Günther Deschner
<gd@samba.org>
Wed, 12 Dec 2012 08:42:33 +0000
(09:42 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
lib/util/pidfile.c
patch
|
blob
|
history
diff --git
a/lib/util/pidfile.c
b/lib/util/pidfile.c
index 88463711f94f4a6f4cf1f0a481c80dda985fb27b..1b382d12175d3e940c0615fc10626020f66c0e7d 100644
(file)
--- a/
lib/util/pidfile.c
+++ b/
lib/util/pidfile.c
@@
-36,7
+36,7
@@
pid_t pidfile_pid(const char *piddir, const char *name)
{
int fd;
char pidstr[20];
- pid_t ret;
+ pid_t ret
= -1
;
char *pidFile;
if (asprintf(&pidFile, "%s/%s.pid", piddir, name) < 0) {