mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 21:36:16 +00:00
Don't crash with NULL string in settings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
854f55fd89
commit
a2c546152e
1 changed files with 3 additions and 1 deletions
4
file.c
4
file.c
|
@ -428,7 +428,9 @@ int parse_file(const char *filename)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
git = is_git_repository(filename, &branch, NULL);
|
git = is_git_repository(filename, &branch, NULL);
|
||||||
if (strstr(filename, prefs.cloud_git_url) && git == dummy_git_repository)
|
if (prefs.cloud_git_url &&
|
||||||
|
strstr(filename, prefs.cloud_git_url)
|
||||||
|
&& git == dummy_git_repository)
|
||||||
/* opening the cloud storage repository failed for some reason
|
/* opening the cloud storage repository failed for some reason
|
||||||
* give up here and don't send errors about git repositories */
|
* give up here and don't send errors about git repositories */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue