Fix segfault in di when the process is dead

This commit is contained in:
pancake 2021-06-29 20:09:11 +02:00
parent 188bce9f25
commit b56b63081d

View File

@ -1700,7 +1700,7 @@ R_API ut64 r_debug_get_baddr(RDebug *dbg, const char *file) {
abspath = r_file_abspath (file);
}
#endif
if (!abspath) {
if (!abspath && file) {
abspath = strdup (file);
}
if (abspath) {