diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-09 17:48:51 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-09 17:48:51 +0200 |
| commit | c1aeb2244cf57886d9a9fdd992c4690975f31539 (patch) | |
| tree | e61a693f7e59eefee89e4de701a5bc98dde188b7 /src | |
| parent | d23185173490b72336f96cc4ffc20bdb49b4da4d (diff) | |
| download | box64-c1aeb2244cf57886d9a9fdd992c4690975f31539.tar.gz box64-c1aeb2244cf57886d9a9fdd992c4690975f31539.zip | |
Fixed potential issue with new loaded lib comparison
Diffstat (limited to 'src')
| -rwxr-xr-x | src/librarian/library.c | 2 |
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) |