FAQ

[memcached] plindner, r504: use (more) correct logic

Commits
Apr 13, 2007 at 8:19 pm
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) {
reply

Search Discussions

Discussion Navigation
viewthread | post

1 user in discussion

Commits: 1 post