getsysinfo() broken on OS/2
Ilya Zakharevich [Thu, 18 Sep 2003 19:01:06 +0000 (12:01 -0700)]
Message-ID: <20030919020106.GA22511@math.berkeley.edu>

p4raw-id: //depot/perl@21286

os2/os2.c

index d5c3e2e..88b5f5d 100644 (file)
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -782,7 +782,7 @@ get_sysinfo(ULONG pid, ULONG flags)
        return 0;
     }
     psi = (PQTOPLEVEL)pbuffer;
-    if (psi && pid && pid != psi->procdata->pid) {
+    if (psi && pid && psi->procdata && pid != psi->procdata->pid) {
       Safefree(psi);
       Perl_croak_nocontext("panic: wrong pid in sysinfo");
     }