Browse Source

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>
maint
Serge E. Hallyn 19 years ago committed by Junio C Hamano
parent
commit
ecc13e73cf
  1. 2
      quote.c

2
quote.c

@ -144,8 +144,6 @@ static int quote_c_style_counted(const char *name, int namelen,


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

Loading…
Cancel
Save