]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use dict2lookup.
authorGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 09:01:55 +0000 (09:01 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 09:01:55 +0000 (09:01 +0000)
Python/marshal.c

index 2049c9b254776e5e446cff67ea65ae7404d76021..1af49ebc152ae0d69b9a60d4af4df8e367937913 100644 (file)
@@ -134,7 +134,7 @@ wr_object(v, fp)
                        extern object *getdict2key();
                        key = getdict2key(v, (int)i);
                        if (key != NULL) {
-                               val = dictlookup(v, getstringvalue(key));
+                               val = dict2lookup(v, key); /* Can't be NULL */
                                wr_object(key, fp);
                                wr_object(val, fp);
                        }