The compiler cannot guess that rise() will not return here.
One should help.
Warning:
Access to field 'file' results in a dereference of a null pointer
(loaded from variable 'error')
aka error->file while error is NULL.
Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
/* we're screwed */
zlog_err("out of memory while allocating error info");
raise(SIGSEGV);
+ abort(); /* raise() can return, but raise(SIGSEGV) shall not */
}
pthread_setspecific(errkey, error);