Backtrace: check for NULL pointer argument.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 28 Apr 2012 18:07:23 +0000 (20:07 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 28 Apr 2012 18:07:23 +0000 (20:07 +0200)
citadel/event_client.c

index 15b5f44a7270b4d903a90f0bc88e944e4b356864..927e18bd0d75a440807219a587dbc47653400737 100644 (file)
@@ -983,7 +983,8 @@ void EV_backtrace(AsyncIO *IO)
        size_t size, i;
        char **strings;
 
-
+       if (IO == NULL)
+               return;
        size = backtrace(stack_frames, sizeof(stack_frames) / sizeof(void*));
        strings = backtrace_symbols(stack_frames, size);
        for (i = 0; i < size; i++) {