From a654527e32df7041aa26fcc18da8678fe01d9bfe Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 16 Feb 2023 15:59:40 +0100 Subject: [PATCH] Trim extra slashes from trace directory --- src/emu/emu_args.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emu/emu_args.c b/src/emu/emu_args.c index 362bb0f..62d4675 100644 --- a/src/emu/emu_args.c +++ b/src/emu/emu_args.c @@ -6,6 +6,7 @@ #include "emu_args.h" #include "common.h" +#include "path.h" #include #include @@ -59,4 +60,5 @@ emu_args_init(struct emu_args *args, int argc, char *argv[]) } args->tracedir = argv[optind]; + path_remove_trailing(args->tracedir); }