@matheusbsbs / matheus-bagliano / commits / ecc13e73cf
Fork 0

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 <serue@us.ibm.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Serge E. Hallyn committed Apr 17, 2006 at 10:14 UTC ecc13e73cf96cb14e2403be6538593a167d7ea23
1 file changed -2
quote.c
-2
@@ -144,8 +144,6 @@ static int quote_c_style_counted(const char *name, int namelen,
144
145 case '\\': /* fallthru */
146 case '"': EMITQ(); break;
147 - case ' ':
148 - break;
147 default:
148 /* octal */
149 EMITQ();