From: Derick Rethans Date: Fri, 11 Jul 2008 08:42:54 +0000 (+0000) Subject: - MFH: Fixed a compiler warning - the code didn't make much sense. X-Git-Tag: php-5.3.0alpha1~406 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ab9ca968bc9b8c1348403dc8054695a39017adf;p=php - MFH: Fixed a compiler warning - the code didn't make much sense. --- diff --git a/ext/date/lib/parse_date.c b/ext/date/lib/parse_date.c index 558bda52f6..6a4c68eebf 100644 --- a/ext/date/lib/parse_date.c +++ b/ext/date/lib/parse_date.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.13.5 on Tue Jul 8 22:24:37 2008 */ +/* Generated by re2c 0.13.5 on Fri Jul 11 10:39:11 2008 */ #line 1 "ext/date/lib/parse_date.re" /* +----------------------------------------------------------------------+ @@ -23410,11 +23410,8 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim switch (*fptr) { case 'D': /* three letter day */ case 'l': /* full day */ - tmp = timelib_lookup_relunit((char **) &ptr); - if (!tmp) { + if (!timelib_lookup_relunit((char **) &ptr)) { add_pbf_error(s, "A textual day could not be found", string, begin); - } else { - s->time->m = tmp; } break; case 'd': /* two digit day, with leading zero */ diff --git a/ext/date/lib/parse_date.re b/ext/date/lib/parse_date.re index 157c12f7fd..da4f5248d1 100644 --- a/ext/date/lib/parse_date.re +++ b/ext/date/lib/parse_date.re @@ -1820,11 +1820,8 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim switch (*fptr) { case 'D': /* three letter day */ case 'l': /* full day */ - tmp = timelib_lookup_relunit((char **) &ptr); - if (!tmp) { + if (!timelib_lookup_relunit((char **) &ptr)) { add_pbf_error(s, "A textual day could not be found", string, begin); - } else { - s->time->m = tmp; } break; case 'd': /* two digit day, with leading zero */