Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b881314

Browse files
committed
Use dict2lookup.
1 parent f0ada4a commit b881314

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/marshal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ wr_object(v, fp)
134134
extern object *getdict2key();
135135
key = getdict2key(v, (int)i);
136136
if (key != NULL) {
137-
val = dictlookup(v, getstringvalue(key));
137+
val = dict2lookup(v, key); /* Can't be NULL */
138138
wr_object(key, fp);
139139
wr_object(val, fp);
140140
}

0 commit comments

Comments
 (0)