diff options
author | ajs <ajs> | 2004-11-24 18:20:30 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-24 18:20:30 +0000 |
commit | ad4d974d06ba3344e2e0df3277f7e0c42f018a4e (patch) | |
tree | 17f417d142dda46926dcd8ce7fdc259572315cef | |
parent | 101ec7099a0c725f8836f51e2f9ad2138eb43502 (diff) |
In zlog_signal, should probably check the return code from backtrace, just
to be safe.
-rw-r--r-- | lib/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -232,7 +232,8 @@ zlog_signal(int signo, const char *action) void *array[20]; int size; - size = backtrace(array,sizeof(array)/sizeof(array[0])); + if ((size = backtrace(array,sizeof(array)/sizeof(array[0]))) <= 0) + return; s = buf; s = str_append(LOC,"Backtrace for "); s = num_append(LOC,size); |