From: Derick Rethans Date: Fri, 11 Jul 2008 08:42:11 +0000 (+0000) Subject: - Fixed a compiler warning - the code didn't make much sense. X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e86197822be1ebc0635968c88e050cc43b9879c;p=php - 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 6cbb923968..cc731abd9a 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:21:57 2008 */ +/* Generated by re2c 0.13.5 on Fri Jul 11 10:41:19 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 */