From cb6634269989a0d3840c1d3afb1a506d6ea3d71d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 2 Sep 2021 12:31:20 -0300 Subject: src/remembering.c: prevent free() of unitialized value --- src/remembering.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/remembering.c b/src/remembering.c index e51eb0e..c0d823a 100644 --- a/src/remembering.c +++ b/src/remembering.c @@ -377,12 +377,12 @@ main(int argc, char *argv[]) { int ret = EXIT_SUCCESS; char *profile_file = NULL; + char *profile_file_dup = NULL; if (!(profile_file = get_profile_file(profile, stderr))) { ret = EXIT_ERROR; goto cleanup; } - char *profile_file_dup = NULL; if (!(profile_file_dup = strdup(profile_file))) { perror("main() - strdup()"); ret = EXIT_ERROR; -- cgit v1.2.3