Code

cleanups: Remove impossible case in quote.c
authorSerge E. Hallyn <serue@us.ibm.com>
Mon, 17 Apr 2006 15:14:48 +0000 (10:14 -0500)
committerJunio C Hamano <junkio@cox.net>
Mon, 17 Apr 2006 22:06:25 +0000 (15:06 -0700)
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>
quote.c

diff --git a/quote.c b/quote.c
index 7218a7080d9a4282530b58c013606c86e4a5fdf5..06792d47c3e324ee9893a4e52035f0642f38005f 100644 (file)
--- a/quote.c
+++ b/quote.c
@@ -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();