summaryrefslogtreecommitdiff
path: root/src/rc/start-stop-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/start-stop-daemon.c')
-rw-r--r--src/rc/start-stop-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index 045080e..c2293e4 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -152,7 +152,7 @@ static int parse_signal (const char *sig)
unsigned int i = 0;
char *s;
- if (! sig || strlen (sig) == 0)
+ if (! sig || *sig == '\0')
return (-1);
if (sscanf (sig, "%u", &i) == 1) {