зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
310f8b5b6d
Коммит
ecc13e73cf
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();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче