[xiph-cvs] cvs commit: libshout/src util.c

Brendan brendan at xiph.org
Sun Mar 9 22:53:33 PST 2003



brendan     03/03/10 01:53:33

  Modified:    src      util.c
  Log:
  dict->key may be null if no key has ever been set

Revision  Changes    Path
1.14      +1 -1      libshout/src/util.c

Index: util.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/util.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- util.c	9 Mar 2003 22:56:45 -0000	1.13
+++ util.c	10 Mar 2003 06:53:33 -0000	1.14
@@ -156,7 +156,7 @@
 const char *util_dict_get(util_dict *dict, const char *key)
 {
         while (dict) {
-		if (!strcmp(key, dict->key))
+		if (dict->key && !strcmp(key, dict->key))
                         return dict->val;
                 dict = dict->next;
         }

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list