Diff of /daemonize.c [715af3] .. [773e1f] Maximize Restore

  Switch to side-by-side view

--- a/daemonize.c
+++ b/daemonize.c
@@ -94,7 +94,7 @@
 	int pidstringlen;
 	int pidfile;
 
-	if(!fname || (strlen(fname) == 0))
+	if(!fname || *fname == '\0')
 		return -1;
 	
 	if( (pidfile = open(fname, O_WRONLY|O_CREAT, 0644)) < 0)
@@ -129,7 +129,7 @@
 	int pidfile;
 	pid_t pid;
 
-	if(!fname || (strlen(fname) == 0))
+	if(!fname || *fname == '\0')
 		return -1;
 
 	if( (pidfile = open(fname, O_RDONLY)) < 0)