[mod-xhtml-neg-cvs] mod_xhtml_neg mod_xhtml_neg.c,1.31,1.32
Brought to you by:
run2000
From: <ru...@us...> - 2004-04-01 09:46:44
|
Update of /cvsroot/mod-xhtml-neg/mod_xhtml_neg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32178 Modified Files: mod_xhtml_neg.c Log Message: Fix null pointer whenever the best accept_rec is null. Index: mod_xhtml_neg.c =================================================================== RCS file: /cvsroot/mod-xhtml-neg/mod_xhtml_neg/mod_xhtml_neg.c,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** mod_xhtml_neg.c 31 Mar 2004 09:45:28 -0000 1.31 --- mod_xhtml_neg.c 1 Apr 2004 09:34:48 -0000 1.32 *************** *** 667,671 **** accept_rec *newrec; ! if( ! mod_xhtml_strempty( rec->charset )) { return rec; } --- 667,671 ---- accept_rec *newrec; ! if(( rec == NULL ) || ( ! mod_xhtml_strempty( rec->charset ))) { return rec; } |