Changeset: ef95a095b7df for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ef95a095b7df
Modified Files:
        sql/server/rel_dump.c
Branch: default
Log Message:

Simplify


diffs (16 lines):

diff --git a/sql/server/rel_dump.c b/sql/server/rel_dump.c
--- a/sql/server/rel_dump.c
+++ b/sql/server/rel_dump.c
@@ -990,10 +990,9 @@ static void /* keep updating the label c
 try_update_label_count(mvc *sql, const char *label)
 {
        if (label && label[0] == '%' && isdigit(label[1])) {
-               const char *begin = label + 1;
                char *eptr = NULL;
-               unsigned int value = (unsigned int) strtol(begin, &eptr, 10);
-               if (eptr && eptr[0] == '\0' && begin != eptr)
+               unsigned int value = (unsigned int) strtol(label + 1, &eptr, 
10);
+               if (eptr && eptr[0] == '\0')
                        sql->label = MAX(sql->label, value);
        }
 }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to