about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-07-09 17:48:51 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-07-09 17:48:51 +0200
commitc1aeb2244cf57886d9a9fdd992c4690975f31539 (patch)
treee61a693f7e59eefee89e4de701a5bc98dde188b7 /src
parentd23185173490b72336f96cc4ffc20bdb49b4da4d (diff)
downloadbox64-c1aeb2244cf57886d9a9fdd992c4690975f31539.tar.gz
box64-c1aeb2244cf57886d9a9fdd992c4690975f31539.zip
Fixed potential issue with new loaded lib comparison
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librarian/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index 57cef4e4..bc4b0d7f 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -279,7 +279,7 @@ static int loadEmulatedLib(const char* libname, library_t *lib, box64context_t*
         lib->priv.n.weaksymbols = kh_init(mapsymbols);
         lib->priv.n.localsymbols = kh_init(mapsymbols);
 
-        if(strcmp(lib->path, libname)) {
+        if(lib->path && strcmp(lib->path, libname)) {
             free(lib->path);
             lib->path = realpath(libname, NULL);
             if(!lib->path)