* strace.cc (strace::vsprntf): Avoid accessing myself->pid if !myself.
This commit is contained in:
parent
7e7a719a8e
commit
378017d7c2
@ -1,3 +1,7 @@
|
|||||||
|
2005-09-22 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* strace.cc (strace::vsprntf): Avoid accessing myself->pid if !myself.
|
||||||
|
|
||||||
2005-09-22 Christopher Faylor <cgf@timesys.com>
|
2005-09-22 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* include/sys/strace.h (_STRACE_ON): Remove semicolon from definition.
|
* include/sys/strace.h (_STRACE_ON): Remove semicolon from definition.
|
||||||
|
@ -149,7 +149,7 @@ strace::vsprntf (char *buf, const char *func, const char *infmt, va_list ap)
|
|||||||
*p = '\000';
|
*p = '\000';
|
||||||
p = progname;
|
p = progname;
|
||||||
count = __small_sprintf (buf, fmt, p && *p ? p : "?",
|
count = __small_sprintf (buf, fmt, p && *p ? p : "?",
|
||||||
myself->pid ?: GetCurrentProcessId (),
|
myself ? myself->pid : GetCurrentProcessId (),
|
||||||
execing ? "!" : "");
|
execing ? "!" : "");
|
||||||
if (func)
|
if (func)
|
||||||
count += getfunc (buf + count, func);
|
count += getfunc (buf + count, func);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user