# HG changeset patch # User Tuomo Valkonen # Date 1169854107 -3600 # Node ID f1bb821008fc469cf662ba1c296b665a5d8bbae9 # Parent de53cada1423bb99156f030eea50089b938358a2 stringstore_get should work on STRINGID_NONE too. diff -r de53cada1423 -r f1bb821008fc stringstore.c --- a/stringstore.c Thu Jan 25 20:15:55 2007 +0100 +++ b/stringstore.c Sat Jan 27 00:28:27 2007 +0100 @@ -21,7 +21,9 @@ const char *stringstore_get(StringId id) { - return (const char*)(((Rb_node)id)->k.key); + return (id==STRINGID_NONE + ? NULL + : (const char*)(((Rb_node)id)->k.key)); }