aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2015-12-22 22:43:46 -0500
committerPeter Eisentraut <peter_e@gmx.net>2015-12-22 22:43:46 -0500
commit30c0c4bf12cc56a7a6c2b7f874e2cd4c95cd3491 (patch)
tree4ba34b1c7ea112f505608c7d378eed264264223a /src/interfaces
parent6efbded6e4672c597a6f0dc0f09263e7db7369ff (diff)
downloadpostgresql-30c0c4bf12cc56a7a6c2b7f874e2cd4c95cd3491.tar.gz
postgresql-30c0c4bf12cc56a7a6c2b7f874e2cd4c95cd3491.zip
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.c4
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);
}