Make backtraces slightly cleaner
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 16 May 2014 09:41:14 +0000 (10:41 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 16 May 2014 09:41:14 +0000 (10:41 +0100)
src/lib/debug.c

index b0cf24d..f83ae17 100644 (file)
@@ -410,6 +410,11 @@ void fr_fault(int sig)
 
        int code;
 
+       /*
+        *      Makes the backtraces slightly cleaner
+        */
+       memset(cmd, 0, sizeof(cmd));
+
        fr_fault_log("CAUGHT SIGNAL: %s\n", strsignal(sig));
 
        /*