mirror of
https://github.com/troglobit/finit.git
synced 2026-12-05 22:08:20 +00:00
conf_changed(): Fix possible NULL ptr deref, found by Coverity Scan
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6f665ab283
commit
0d19842aa1
1 file changed
+4
-1
+4
-1
@@ -619,7 +619,10 @@ int conf_changed(char *file)
|
|||||||
{
|
{
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
if (file && (ptr = strrchr(file, '/')))
|
if (!file)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if ((ptr = strrchr(file, '/')))
|
||||||
file = ++ptr;
|
file = ++ptr;
|
||||||
|
|
||||||
if (conf_find(file))
|
if (conf_find(file))
|
||||||
|
|||||||
Reference in new issue
Block a user