dav/sopt.c

changeset 68
f6d3db6113d3
parent 53
ddc4efc9b0f8
child 75
56962faf2b42
--- a/dav/sopt.c	Fri Dec 12 13:57:41 2014 +0100
+++ b/dav/sopt.c	Fri Dec 12 15:19:38 2014 +0100
@@ -43,6 +43,8 @@
     a->argv = calloc(argc, sizeof(char*));
     a->argc = 0;
     
+    const char *NOARG = "";
+    
     char *option = NULL;
     char optchar = 0;
     for(int i=0;i<argc;i++) {
@@ -73,11 +75,15 @@
                     }
                     */
                     case 'c': {
-                        ucx_map_cstr_put(a->options, "conflict", "");
+                        ucx_map_cstr_put(a->options, "conflict", NOARG);
                         break;
                     }
                     case 'r': {
-                        ucx_map_cstr_put(a->options, "read", "");
+                        ucx_map_cstr_put(a->options, "read", NOARG);
+                        break;
+                    }
+                    case 'v': {
+                        ucx_map_cstr_put(a->options, "verbose", NOARG);
                         break;
                     }
                 }

mercurial