From 2ea1df634e356a580c5cf98df5e4e57da39dacbe Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 4 Sep 2009 13:24:26 +0100 Subject: [PATCH] Fix signed error. --- src/rc/start-stop-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 5529e858..f0f47950 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -166,7 +166,7 @@ parse_signal(const char *sig) return -1; if (sscanf(sig, "%u", &i) == 1) { - if (i >= 0 && i < NSIG) + if (i < NSIG) return i; eerrorx("%s: `%s' is not a valid signal", applet, sig); }