Check for dig in dump_size().
authortwisti <none@none>
Sun, 28 Nov 2004 17:11:50 +0000 (17:11 +0000)
committertwisti <none@none>
Sun, 28 Nov 2004 17:11:50 +0000 (17:11 +0000)
src/mm/memory.c
toolbox/memory.c

index 2a6673189726a69d71d83cd42cf665c7ec8212ed..236cda9719343529c3104fb2e6b9b14ea0db5308 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Reinhard Grafl
 
-   $Id: memory.c 1568 2004-11-23 16:02:31Z twisti $
+   $Id: memory.c 1599 2004-11-28 17:11:50Z twisti $
 
 */
 
@@ -321,6 +321,9 @@ s4 dump_size()
        di = &nothreads_dumpinfo;
 #endif
 
+       if (!di)
+               return 0;
+
        return di->useddumpsize;
 }
 
index 2a6673189726a69d71d83cd42cf665c7ec8212ed..236cda9719343529c3104fb2e6b9b14ea0db5308 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Reinhard Grafl
 
-   $Id: memory.c 1568 2004-11-23 16:02:31Z twisti $
+   $Id: memory.c 1599 2004-11-28 17:11:50Z twisti $
 
 */
 
@@ -321,6 +321,9 @@ s4 dump_size()
        di = &nothreads_dumpinfo;
 #endif
 
+       if (!di)
+               return 0;
+
        return di->useddumpsize;
 }