summaryrefslogtreecommitdiff
path: root/main/spprintf.c
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2011-08-09 02:37:02 +0000
committerPierrick Charron <pierrick@php.net>2011-08-09 02:37:02 +0000
commitcb1cd0b3ab26931d676976d5f9f4eb4465bb1ce1 (patch)
treed3c96d0ec5ab93475eabba4e6dd632954f73ea70 /main/spprintf.c
parenta61534eab80b2d4dbfe1696d982ee4f43533eb18 (diff)
downloadphp-git-cb1cd0b3ab26931d676976d5f9f4eb4465bb1ce1.tar.gz
Remove unused variable
Diffstat (limited to 'main/spprintf.c')
-rw-r--r--main/spprintf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/spprintf.c b/main/spprintf.c
index 8599d890ee..79ba346fdf 100644
--- a/main/spprintf.c
+++ b/main/spprintf.c
@@ -198,7 +198,6 @@ static size_t strnlen(const char *s, size_t maxlen) {
static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) /* {{{ */
{
char *s = NULL;
- char *q;
int s_len, free_zcopy;
zval *zvp, zcopy;
@@ -679,7 +678,7 @@ static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap)
s_len = strlen(s);
- if (alternate_form && (q = strchr(s, '.')) == NULL)
+ if (alternate_form && (strchr(s, '.')) == NULL)
s[s_len++] = '.';
break;