cmd_edit: fixes wrong return code if the user did not change the file feature/dav-edit

Sun, 05 Apr 2020 10:13:09 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 05 Apr 2020 10:13:09 +0200
branch
feature/dav-edit
changeset 719
be012dd45b4b
parent 718
e71ffa69d3fe
child 720
2b8a65ed6f4c

cmd_edit: fixes wrong return code if the user did not change the file

dav/main.c file | annotate | diff | comparison | revisions
--- a/dav/main.c	Sun Apr 05 10:11:46 2020 +0200
+++ b/dav/main.c	Sun Apr 05 10:13:09 2020 +0200
@@ -1348,6 +1348,7 @@
                 }
             } else {
                 printf("No changes by user - file will not be uploaded.\n");
+                ret = 0;
             }
         }
     }

mercurial