diff options
| author | Peter Eisentraut | 2015-12-23 03:43:46 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2015-12-23 03:43:46 +0000 |
| commit | 30c0c4bf12cc56a7a6c2b7f874e2cd4c95cd3491 (patch) | |
| tree | 4ba34b1c7ea112f505608c7d378eed264264223a /src/interfaces | |
| parent | 6efbded6e4672c597a6f0dc0f09263e7db7369ff (diff) | |
Remove unnecessary escaping in C character literals
'\"' is more commonly written simply as '"'.
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/ecpg/preproc/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/output.c b/src/interfaces/ecpg/preproc/output.c index 8cac947b5a3..cf2ed58d0ac 100644 --- a/src/interfaces/ecpg/preproc/output.c +++ b/src/interfaces/ecpg/preproc/output.c @@ -197,7 +197,7 @@ output_escaped_str(char *str, bool quoted) int i = 0; int len = strlen(str); - if (quoted && str[0] == '\"' && str[len - 1] == '\"') /* do not escape quotes + if (quoted && str[0] == '"' && str[len - 1] == '"') /* do not escape quotes * at beginning and end * if quoted string */ { @@ -241,6 +241,6 @@ output_escaped_str(char *str, bool quoted) fputc(str[i], yyout); } - if (quoted && str[0] == '\"' && str[len] == '\"') + if (quoted && str[0] == '"' && str[len] == '"') fputs("\"", yyout); } |
