mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
util: Don't use the pid ret value uninitialized.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
f1fe877d07
commit
ac434c4223
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user