diff mbox series

[v3,2/3] dir: remove stray quote character in comment

Message ID 49b0b628dbc898fc2dd93603b4bc23d41037e569.1576571586.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series Directory traversal bugs | expand

Commit Message

Johannes Schindelin via GitGitGadget Dec. 17, 2019, 8:33 a.m. UTC
From: Elijah Newren <newren@gmail.com>

Signed-off-by: Elijah Newren <newren@gmail.com>
---
 dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/dir.c b/dir.c
index 61f559f980..13c0c2333c 100644
--- a/dir.c
+++ b/dir.c
@@ -373,7 +373,7 @@  static int match_pathspec_item(const struct index_state *istate,
 		    !ps_strncmp(item, match, name, namelen))
 			return MATCHED_RECURSIVELY_LEADING_PATHSPEC;
 
-		/* name" doesn't match up to the first wild character */
+		/* name doesn't match up to the first wild character */
 		if (item->nowildcard_len < item->len &&
 		    ps_strncmp(item, match, name,
 			       item->nowildcard_len - prefix))