Skip to content
Snippets Groups Projects
Commit 8980ab2c authored by deuce's avatar deuce
Browse files

Do not examine ext+1 if ext[0]==0

Found by Valgrind.
parent d13bb319
Branches
Tags
No related merge requests found
......@@ -881,7 +881,7 @@ static BOOL get_xjs_handler(char* ext, http_session_t* session)
{
size_t i;
if(ext==NULL || xjs_handlers==NULL)
if(ext==NULL || xjs_handlers==NULL || ext[0]==0)
return(FALSE);
for(i=0;xjs_handlers[i]!=NULL;i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment