summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source.c b/source.c
index 902ad4c..3bdc210 100644
--- a/source.c
+++ b/source.c
@@ -194,7 +194,7 @@ uc_source_runpath_set(uc_source_t *source, const char *runpath)
if (source->runpath != source->filename)
free(source->runpath);
- source->runpath = xstrdup(runpath);
+ source->runpath = runpath ? xstrdup(runpath) : NULL;
}
bool