Skip to content

Commit ecc13e7

Browse files
Serge E. HallynJunio C Hamano
authored andcommitted
cleanups: Remove impossible case in quote.c
The switch is inside an if statement which is false if the character is ' '. Either the if should be <=' ' instead of <' ', or the case should be removed as it could be misleading. Signed-off-by: Serge E. Hallyn <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 310f8b5 commit ecc13e7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

quote.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ static int quote_c_style_counted(const char *name, int namelen,
144144

145145
case '\\': /* fallthru */
146146
case '"': EMITQ(); break;
147-
case ' ':
148-
break;
149147
default:
150148
/* octal */
151149
EMITQ();

0 commit comments

Comments
 (0)