aboutsummaryrefslogtreecommitdiff
path: root/src/remembering.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-09-02 12:31:20 -0300
committerEuAndreh <eu@euandre.org>2021-09-02 12:31:20 -0300
commitcb6634269989a0d3840c1d3afb1a506d6ea3d71d (patch)
tree1d52d04c403993e11f8fcd2916649065e366d732 /src/remembering.c
parentdoc/manpages.sh: Stick to 80 columns (diff)
downloadremembering-cb6634269989a0d3840c1d3afb1a506d6ea3d71d.tar.gz
remembering-cb6634269989a0d3840c1d3afb1a506d6ea3d71d.tar.xz
src/remembering.c: prevent free() of unitialized value
Diffstat (limited to 'src/remembering.c')
-rw-r--r--src/remembering.c2
1 files changed, 1 insertions, 1 deletions
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;