Author: paultcochrane
Date: Sat Oct  6 05:24:11 2007
New Revision: 21915

Modified:
   trunk/src/global.c

Log:
[core] Added a check of pmc_key to make sure it isn't null before being
passed into key_string()


Modified: trunk/src/global.c
==============================================================================
--- trunk/src/global.c  (original)
+++ trunk/src/global.c  Sat Oct  6 05:24:11 2007
@@ -87,6 +87,10 @@
         if (str_key)
             part = str_key;
         else if (n == max_intval) {
+            if (!pmc_key) {
+                real_exception(interp, NULL, 1,
+                        "Passing a NULL pmc_key into key_string()");
+            }
             part = key_string(interp, pmc_key);
             pmc_key = key_next(interp, pmc_key);
             if (! pmc_key)

Reply via email to