diff options
author | Roy Marples <roy@marples.name> | 2008-01-21 15:30:40 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-21 15:30:40 +0000 |
commit | 07728abbc1eb1aa91d21318f3a3d64b15c2800fe (patch) | |
tree | 350dfce5968e05b1db4a1b7d94cb72dfdf830df4 /src/rc/start-stop-daemon.c | |
parent | 847ccac13c8afc04d1105cc483c8ec7e9baa53a6 (diff) |
Checking first char for null is more efficient than strlen.
Diffstat (limited to 'src/rc/start-stop-daemon.c')
-rw-r--r-- | src/rc/start-stop-daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 045080ea..c2293e4e 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) { |