some small fixes in tar.c

Mon, 30 Oct 2017 16:29:07 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 30 Oct 2017 16:29:07 +0100
changeset 336
6331271116d0
parent 335
c1bc13faadaa
child 337
d7bda914d120

some small fixes in tar.c

dav/tar.c file | annotate | diff | comparison | revisions
--- a/dav/tar.c	Sat Oct 28 16:50:03 2017 +0200
+++ b/dav/tar.c	Mon Oct 30 16:29:07 2017 +0100
@@ -35,6 +35,7 @@
 
 const char* tar_error2str(TarError error) {
     switch(error) {
+        default: break;
         case TAR_OK: return "ok";
         case TAR_PATH_TOO_LONG: return "path too long";
         case TAR_FILE_TOO_LARGE: return "file too large";
@@ -316,4 +317,5 @@
         free(tar->cur_entry.path);
     }
     free(tar);
+    return 0;
 }

mercurial