Code

Merge branch 'jc/maint-reset' into maint
[git.git] / quote.c
diff --git a/quote.c b/quote.c
index e38ba39b6468fda8cc68aec73615ac9cce158daa..d5cf9d8f94f37fe8ff9f964998c7f0525617e5bc 100644 (file)
--- a/quote.c
+++ b/quote.c
@@ -330,7 +330,7 @@ int unquote_c_style(struct strbuf *sb, const char *quoted, const char **endp)
                switch (*quoted++) {
                  case '"':
                        if (endp)
-                               *endp = quoted + 1;
+                               *endp = quoted;
                        return 0;
                  case '\\':
                        break;