# HG changeset patch # User bcoudurier # Date 1239667949 0 # Node ID 9e8931fef1c1de38ba648d0a5c6a74091557e363 # Parent 70afd9081b3f52dc817c9230599e5625ba97e763 avoid strcmp NULL, fix segv on mingw diff -r 70afd9081b3f -r 9e8931fef1c1 imgconvert.c --- a/imgconvert.c Mon Apr 13 20:44:42 2009 +0000 +++ b/imgconvert.c Tue Apr 14 00:12:29 2009 +0000 @@ -494,7 +494,7 @@ int i; for (i=0; i < PIX_FMT_NB; i++) - if (!strcmp(pix_fmt_info[i].name, name)) + if (pix_fmt_info[i].name && !strcmp(pix_fmt_info[i].name, name)) return i; return PIX_FMT_NONE; }