Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mozilla 520500: test for (len > 0)

This change was present in the patch for 520500 but not 521863.
Applied separately after discussion with Chris Pearce.
  • Loading branch information...
commit 46faa6b42a47efed66be99569291f0153f50aae8 1 parent ac2015d
@kfish authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/libfishsound/comments.c
View
2  src/libfishsound/comments.c
@@ -503,7 +503,7 @@ fish_sound_comments_decode (FishSound * fsound, unsigned char * comments,
}
fs_free (nvalue);
- } else {
+ } else if (len > 0) {
debug_printf (1, "[%d] %s (no value)", i, name, len);
if ((nvalue = fs_strdup_len (name, len)) == NULL)
Please sign in to comment.
Something went wrong with that request. Please try again.