]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 902: Fix non-void function without a return
authorAidan Van Dyk <aidan@ifax.com>
Mon, 2 Feb 2009 16:07:06 +0000 (16:07 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Mon, 2 Feb 2009 16:07:06 +0000 (16:07 +0000)
Christof reports this:
I: Program returns random data in a function
E: hylafax no-return-in-nonvoid-function Trigger.c++:473

faxd/Trigger.c++

index 02edd1c39d89fc7c2873509c1c693015e100b3b1..c1c18247ddcc08bfbc3b6a2f840cbceeb75674f4 100644 (file)
@@ -461,14 +461,11 @@ Trigger::setTriggerHook (const char* prg, const char* spec)
 
     Trigger* event = new Trigger(hookTID, "/dev/null");
     if (!event->parse(spec))
-    {
         logWarning("TRIGGER EVENT: Couldn't parse spec: %s", spec);
-    }
 
     memcpy(hookInterests, event->interests, sizeof(hookInterests));
     event->cancel();
     delete event;
     hookCmd = prg;
+    return true;
 }
-
-