From 8cc45a3a3dabb68de46bba5d272531cb85a8db3c Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Mon, 25 Sep 2017 17:05:44 +0200 Subject: [PATCH] Do not assign save_errno for no reason --- src/util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util.c b/src/util.c index 9f9674c..572154a 100644 --- a/src/util.c +++ b/src/util.c @@ -160,7 +160,6 @@ util_write_pid_file(const char *path) if (NULL != pidfile_file) fclose(pidfile_file); if (NULL == (pidfile_file = fopen(pidfile_path, "w"))) { - save_errno = errno; xfree(pidfile_path); pidfile_path = NULL; return (-1);