aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/elflink/exec.c')
-rw-r--r--com32/elflink/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/elflink/exec.c b/com32/elflink/exec.c
index 58f04b45..4f300c23 100644
--- a/com32/elflink/exec.c
+++ b/com32/elflink/exec.c
@@ -20,6 +20,9 @@ static struct elf_module *mod_root = NULL;
static char *module_get_fullname(const char *name) {
static char name_buff[MODULE_NAME_SIZE];
+ if (name == NULL)
+ return NULL;
+
strcpy(name_buff, EXEC_DIRECTORY);
strcat(name_buff, name);