Commit 415507d3 authored by Sergei Golubchik's avatar Sergei Golubchik

add a space between safemalloc error mesage and a stack trace

parent e3650f37
...@@ -246,6 +246,7 @@ static void warn(const char *format,...) ...@@ -246,6 +246,7 @@ static void warn(const char *format,...)
{ {
void *frame[SF_REMEMBER_FRAMES + SF_FRAMES_SKIP]; void *frame[SF_REMEMBER_FRAMES + SF_FRAMES_SKIP];
int frames= backtrace(frame, array_elements(frame)); int frames= backtrace(frame, array_elements(frame));
fprintf(stderr, " ");
if (frames < SF_REMEMBER_FRAMES + SF_FRAMES_SKIP) if (frames < SF_REMEMBER_FRAMES + SF_FRAMES_SKIP)
frame[frames]= 0; frame[frames]= 0;
print_stack(frame + SF_FRAMES_SKIP); print_stack(frame + SF_FRAMES_SKIP);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment