getsysinfo() broken on OS/2
authorIlya Zakharevich <ilya@math.berkeley.edu>
Thu, 18 Sep 2003 19:01:06 +0000 (12:01 -0700)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 19 Sep 2003 04:48:52 +0000 (04:48 +0000)
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");
     }