]> granicus.if.org Git - php/commitdiff
- MFH: Fixed a compiler warning - the code didn't make much sense.
authorDerick Rethans <derick@php.net>
Fri, 11 Jul 2008 08:42:54 +0000 (08:42 +0000)
committerDerick Rethans <derick@php.net>
Fri, 11 Jul 2008 08:42:54 +0000 (08:42 +0000)
ext/date/lib/parse_date.c
ext/date/lib/parse_date.re

index 558bda52f69999e258f80a2680b5717478752d7a..6a4c68eebf7cfb1717693b0c612d6a3835d6ce52 100644 (file)
@@ -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 */
index 157c12f7fd969bb511ca636a68335c935b6d4b3d..da4f5248d197d4d221e48c2b8114379777ae60ca 100644 (file)
@@ -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 */