summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/prof_sys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/prof_sys.c b/src/prof_sys.c
index 3f7196f8..3cbb3a85 100644
--- a/src/prof_sys.c
+++ b/src/prof_sys.c
@@ -749,6 +749,9 @@ bool
prof_prefix_set(tsdn_t *tsdn, const char *prefix) {
cassert(config_prof);
ctl_mtx_assert_held(tsdn);
+ if (prefix == NULL) {
+ return true;
+ }
malloc_mutex_lock(tsdn, &prof_dump_filename_mtx);
if (prof_prefix == NULL) {
malloc_mutex_unlock(tsdn, &prof_dump_filename_mtx);