diff options
author | jozan <jozan@noemail.net> | 2020-11-08 03:54:31 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-08 03:54:31 +0000 |
commit | a4f796496ffcce9cd5f71d9397b734760d364ede (patch) | |
tree | 30d6085420c22565eb889c02b7d35336086804d5 | |
parent | Substitution in progress (diff) | |
download | unixize-a4f796496ffcce9cd5f71d9397b734760d364ede.tar.gz unixize-a4f796496ffcce9cd5f71d9397b734760d364ede.tar.bz2 unixize-a4f796496ffcce9cd5f71d9397b734760d364ede.tar.xz unixize-a4f796496ffcce9cd5f71d9397b734760d364ede.tar.zst unixize-a4f796496ffcce9cd5f71d9397b734760d364ede.zip |
It's starting to work
FossilOrigin-Name: 255b54ae5462cf8171803d7bccc96739b6a93a2313762ef99c37e47847677bd0
-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( |