Hand-apply commit e58e28903371ef25d505498b7072e87037fca695 from 0.73-development
authorAri Johnson <ari@theari.com>
Mon, 18 Jul 2011 21:46:10 +0000 (17:46 -0400)
committerAri Johnson <ari@theari.com>
Mon, 18 Jul 2011 21:46:10 +0000 (17:46 -0400)
src/funmisc.c

index 87807c24959174ce646818cf35db07d79b074162..8353cd4b979787facc8021694644b94de05da535 100644 (file)
@@ -847,7 +847,8 @@ FUNCTION(fun_signal) {
         if(qsig == QID_FALSE) {
                 safe_str("#-1 INVALID SIGNAL", buff, bp);
                 return;
-        } else if(qsig == QID_TIME && (!*args[2] || atoi(args[2]) < 0)) {
+        } else if(qsig == QID_TIME && (!args[2] || !*args[2] ||
+                                      atoi(args[2]) < 0)) {
                 safe_str("#-1 INVALID TIME ARGUMENT", buff, bp);
                 return;
         }