[memcached] plindner, r504: use (more) correct logic
commits at code.sixapart.com
commits at code.sixapart.com
Fri Apr 13 20:19:16 UTC 2007
use (more) correct logic
U trunk/server/memcached.c
Modified: trunk/server/memcached.c
===================================================================
--- trunk/server/memcached.c 2007-04-13 20:18:33 UTC (rev 503)
+++ trunk/server/memcached.c 2007-04-13 20:19:15 UTC (rev 504)
@@ -2323,7 +2323,7 @@
static void save_pid(const pid_t pid, const char *pid_file) {
FILE *fp;
- if (!pid_file)
+ if (pid_file == NULL)
return;
if (!(fp = fopen(pid_file, "w"))) {
@@ -2339,7 +2339,7 @@
}
static void remove_pidfile(const char *pid_file) {
- if (!pid_file)
+ if (pid_file == NULL)
return;
if (unlink(pid_file) != 0) {
More information about the memcached-commits
mailing list