First round of fixes based on cppcheck

https://github.com/fish-shell/fish-shell/issues/575
This commit is contained in:
ridiculousfish
2013-02-16 00:02:40 -08:00
parent 635c87d629
commit 6d522e6ed6
10 changed files with 49 additions and 64 deletions

View File

@@ -112,11 +112,10 @@ void show_stackframe()
return;
void *trace[32];
char **messages = (char **)NULL;
int i, trace_size = 0;
trace_size = backtrace(trace, 32);
messages = backtrace_symbols(trace, trace_size);
char **messages = backtrace_symbols(trace, trace_size);
if (messages)
{