diff options
| author | EuAndreh <eu@euandre.org> | 2021-09-02 12:31:20 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-09-02 12:31:20 -0300 |
| commit | cb6634269989a0d3840c1d3afb1a506d6ea3d71d (patch) | |
| tree | 1d52d04c403993e11f8fcd2916649065e366d732 | |
| parent | doc/manpages.sh: Stick to 80 columns (diff) | |
| download | remembering-cb6634269989a0d3840c1d3afb1a506d6ea3d71d.tar.gz remembering-cb6634269989a0d3840c1d3afb1a506d6ea3d71d.tar.xz | |
src/remembering.c: prevent free() of unitialized value
| -rw-r--r-- | src/remembering.c | 2 |
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; |
