# HG changeset patch # User rsf # Date 1050652109 0 # Node ID 9eb5d5bd9aaa6d0885068d65ee3c5ad12fa53b14 # Parent 6cb7a295ab0e6632982f289d6c263448840be39e Fixed the code that checks for a ".rm" URL extension to also make sure that the extension is not NULL. diff -r 6cb7a295ab0e -r 9eb5d5bd9aaa libmpdemux/network.c --- a/libmpdemux/network.c Thu Apr 17 20:39:41 2003 +0000 +++ b/libmpdemux/network.c Fri Apr 18 07:48:29 2003 +0000 @@ -592,7 +592,7 @@ extension=(url->file)+i+1; break; } - if (!strcasecmp(extension, "rm")) { + if (extension != NULL && !strcasecmp(extension, "rm")) { *file_format = DEMUXER_TYPE_REAL; return 0; }