conf_changed(): Fix possible NULL ptr deref, found by Coverity Scan

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-24 10:35:07 +01:00
1 parent 6f665ab283
commit 0d19842aa1
1 file changed
+4 -1
+4 -1
View File
@@ -619,7 +619,10 @@ int conf_changed(char *file)
{
char *ptr;
if (file && (ptr = strrchr(file, '/')))
if (!file)
return 0;
if ((ptr = strrchr(file, '/')))
file = ++ptr;
if (conf_find(file))