From ab1fdbfead13f464b02dbc98ae8fbd0682ffce48 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 11 Jun 2022 14:48:56 +0200 Subject: Fixed a potential crash with previous commit --- src/librarian/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/librarian/library.c b/src/librarian/library.c index 0ef65a3a..2c8ebd5a 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -553,7 +553,7 @@ int IsSameLib(library_t* lib, const char* path) if(!lib) return 0; char* name = Path2Name(path); - if((!strchr(path, '/') || lib->type==0)) { + if(!strchr(path, '/') || lib->type==0 || !lib->path) { if(strcmp(name, lib->name)==0) ret=1; } else { -- cgit 1.4.1