]> sourceware.org Git - newlib-cygwin.git/commitdiff
* strace.cc (strace::vsprntf): Avoid accessing myself->pid if !myself.
authorChristopher Faylor <me@cgf.cx>
Thu, 22 Sep 2005 17:06:48 +0000 (17:06 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 22 Sep 2005 17:06:48 +0000 (17:06 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/strace.cc

index 63ef597e9f3df422bc06158b29e2c26fbeb90c50..e9018471e36e7af6da423dfea5d6ca02937efabc 100644 (file)
@@ -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>
 
        * include/sys/strace.h (_STRACE_ON): Remove semicolon from definition.
index 38b00f6cbadf1c77177b40afb6846a28cecf4fd4..104be711b2f9ab2993d9e6e95c1fcf61388f7a10 100644 (file)
@@ -149,7 +149,7 @@ strace::vsprntf (char *buf, const char *func, const char *infmt, va_list ap)
        *p = '\000';
       p = progname;
       count = __small_sprintf (buf, fmt, p && *p ? p : "?",
-                             myself->pid ?: GetCurrentProcessId (),
+                             myself ? myself->pid : GetCurrentProcessId (),
                               execing ? "!" : "");
       if (func)
        count += getfunc (buf + count, func);
This page took 0.032454 seconds and 5 git commands to generate.