# HG changeset patch # User nenolod # Date 1141167390 28800 # Node ID 363f8644bce7d6b866e0925ea2079ed0bd8e69e5 # Parent aa6d333a0dd7cd6a017d588ff68a5279d3fd38ec [svn] - sanity checks here diff -r aa6d333a0dd7 -r 363f8644bce7 Plugins/Input/mpg123/mpg123.c --- a/Plugins/Input/mpg123/mpg123.c Tue Feb 28 14:36:33 2006 -0800 +++ b/Plugins/Input/mpg123/mpg123.c Tue Feb 28 14:56:30 2006 -0800 @@ -293,9 +293,9 @@ { gchar *ext = strrchr(filename, '.'); - if (!strncasecmp(filename, "http://", 7) && (strncasecmp(ext, ".ogg", 4))) + if (!strncasecmp(filename, "http://", 7) && (ext && strncasecmp(ext, ".ogg", 4))) return TRUE; - else if (strncasecmp(ext, ".mp3", 4)) /* If extension ends in .mp3, let it be --nenolod */ + else if (ext && strncasecmp(ext, ".mp3", 4)) /* If extension ends in .mp3, let it be --nenolod */ return (mpg123_detect_by_content(filename)); return TRUE; /* Why? The file ends in .mp3. Lalala. */