Skip to content

Commit

Permalink
use (more) correct logic
Browse files Browse the repository at this point in the history
git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@504 b0b603af-a30f-0410-a34e-baf09ae79d0b
  • Loading branch information
plindner committed Apr 13, 2007
1 parent 2ca25f2 commit 95aa914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,7 @@ static void usage_license(void) {

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"))) {
Expand All @@ -2339,7 +2339,7 @@ static void save_pid(const pid_t pid, const char *pid_file) {
}

static void remove_pidfile(const char *pid_file) {
if (!pid_file)
if (pid_file == NULL)
return;

if (unlink(pid_file) != 0) {
Expand Down

0 comments on commit 95aa914

Please sign in to comment.