diff options
-rw-r--r-- | src/c_lfiles.c | 2 | ||||
-rw-r--r-- | src/c_unixize.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/c_lfiles.c b/src/c_lfiles.c index 98a69e2..b420373 100644 --- a/src/c_lfiles.c +++ b/src/c_lfiles.c @@ -140,7 +140,7 @@ c_lfiles_gather(void) link = c_lfiles_new(dp->d_name, dp->d_type); if (link == NULL) { u_dump_errno(); - c_lfiles_clear(&link); + c_lfiles_clear(&head); return (NULL); } c_lfiles_add_back(&head, link); diff --git a/src/c_unixize.c b/src/c_unixize.c index e2e3216..e4b9797 100644 --- a/src/c_unixize.c +++ b/src/c_unixize.c @@ -97,6 +97,7 @@ main new_files = c_subst_filenames(og_files, opts.hyphen); if (new_files == NULL) { c_lfiles_clear(&og_files); + printf("qwe\n"); return (1); } og_files_head = og_files; @@ -131,7 +132,7 @@ main og_files->filename, new_files->filename, strlen(new_files->filename) + 1 - ) == 0 + ) != 0 ) { if (opts.verbose == TRUE) { dprintf( |