Skip to content

Commit

Permalink
cleanups: Remove impossible case in quote.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Serge E. Hallyn authored and Junio C Hamano committed Apr 17, 2006
1 parent 310f8b5 commit ecc13e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions quote.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ static int quote_c_style_counted(const char *name, int namelen,

case '\\': /* fallthru */
case '"': EMITQ(); break;
case ' ':
break;
default:
/* octal */
EMITQ();
Expand Down

0 comments on commit ecc13e7

Please sign in to comment.