From cd0a27680ab9cc6032dea5093a44b18237c09821 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 25 Aug 2020 15:34:11 +0200 Subject: [PATCH] (config_file.c) Cleanup --- libretro-common/file/config_file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index 5cd9c2c39e..035c83e413 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -382,11 +382,11 @@ static int config_file_new_internal( const char *path, unsigned depth, config_file_cb_t *cb) { RFILE *file = NULL; - - conf->path = strdup(path); - if (!conf->path) + char *new_path = strdup(path); + if (!new_path) return 1; + conf->path = new_path; conf->include_depth = depth; file = filestream_open(path, RETRO_VFS_FILE_ACCESS_READ,