Fix potential null dereference

This commit is contained in:
Rene Kita
2022-04-15 12:43:36 +02:00
parent 9eaf044c02
commit a0b3c1b467

3
etc.c
View File

@@ -1596,7 +1596,8 @@ file_to_url(char *file)
char *host = NULL;
#endif
file = expandPath(file);
if (!(file = expandPath(file)))
return NULL;
#ifdef SUPPORT_NETBIOS_SHARE
if (file[0] == '/' && file[1] == '/') {
char *p;