Fixed uninitialized value
This commit is contained in:
parent
e42b15eb05
commit
447e330bdf
@ -421,7 +421,7 @@ static BOOL process_uri(const char* uri, size_t uri_len, wArrayList* files)
|
||||
const char* prefix = "file://";
|
||||
BOOL result = FALSE;
|
||||
char* name = NULL;
|
||||
const size_t prefixLen = strnlen(prefix, sizeof (prefix));
|
||||
const size_t prefixLen = strnlen(prefix, sizeof(prefix));
|
||||
WLog_VRB(TAG, "processing URI: %.*s", uri_len, uri);
|
||||
|
||||
if ((uri_len < prefixLen) || strncmp(uri, prefix, prefixLen))
|
||||
|
Loading…
Reference in New Issue
Block a user