Skip to content

Commit

Permalink
oggz-codecs: fix for unsigned comparison >= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kfish committed Sep 14, 2009
1 parent 2cc0d20 commit 41a6e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/oggz-codecs.c
Expand Up @@ -115,7 +115,7 @@ print_codec_name (OI_Info * info, long serialno)
} }
if (show_as_mime) { if (show_as_mime) {
const char *mime_type = NULL; const char *mime_type = NULL;
if (content >= 0 && content < OGGZ_CONTENT_UNKNOWN) if (content < OGGZ_CONTENT_UNKNOWN)
mime_type = mime_type_names[content]; mime_type = mime_type_names[content];
if (!mime_type) mime_type = "application/octet-stream"; if (!mime_type) mime_type = "application/octet-stream";
printf("%s%s", mime_type, show_one_per_line?"\n":""); printf("%s%s", mime_type, show_one_per_line?"\n":"");
Expand Down

0 comments on commit 41a6e2d

Please sign in to comment.