Commit 3c53c131 authored by Gabriel de Perthuis's avatar Gabriel de Perthuis Committed by Jean-Baptiste Kempf

Prevent potential null pointer dereference in zip access

Close #12149
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5dc03a47
...@@ -713,7 +713,7 @@ static node* findOrCreateParentNode( node *root, const char *fullpath ) ...@@ -713,7 +713,7 @@ static node* findOrCreateParentNode( node *root, const char *fullpath )
while( current ) while( current )
{ {
if( !strcmp( current->name, folder ) ) if( current->name && !strcmp( current->name, folder ) )
{ {
/* We found the folder, go recursively deeper */ /* We found the folder, go recursively deeper */
node *parentNode = findOrCreateParentNode( current, sep ); node *parentNode = findOrCreateParentNode( current, sep );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment