utils/t/exc-test.c: Print null pointers in a consistent way.
[mLib] / utils / t / exc-test.c
index ba74b94..89701bf 100644 (file)
@@ -35,7 +35,10 @@ int main(void)
       printf("%lu exception (val = %i)\n", exc_type, exc_i);
       break;
   } END_TRY;
-  printf("hello! __exc_list = %p\n", (void *)__exc_list);
+  printf("hello! __exc_list = ");
+  if (__exc_list) printf("%p", (void *)__exc_list);
+  else printf("(nil)");
+  putchar('\n');
 
   return (0);
 }