# HG changeset patch # User Ryan C. Gordon # Date 1002045203 0 # Node ID dfdf7b4e05bdac7f4cf6f9736d0f5bb25287187f # Parent 40be84c1aadd18f7425fb8332b069b55bdfe9551 Changed __Sound_strcasecmp() to handle NULL strings gracefully. diff -r 40be84c1aadd -r dfdf7b4e05bd SDL_sound.c --- a/SDL_sound.c Tue Oct 02 17:47:07 2001 +0000 +++ b/SDL_sound.c Tue Oct 02 17:53:23 2001 +0000 @@ -236,6 +236,15 @@ { int ux, uy; + if (x == y) /* same pointer? Both NULL? */ + return(0); + + if (x == NULL) + return(-1); + + if (y == NULL) + return(1); + do { ux = toupper((int) *x);