]> Kevux Git Server - fll/commitdiff
Update: Don't double check the variable.
authorKevin Day <thekevinday@gmail.com>
Wed, 16 Feb 2022 00:53:02 +0000 (18:53 -0600)
committerKevin Day <thekevinday@gmail.com>
Wed, 16 Feb 2022 00:53:02 +0000 (18:53 -0600)
level_3/fake/c/private-make-operate_validate.c

index 23fcee97a8d5c04be384c482fba920cd6262b9ec..6d4d7f5a002b8c022b49651d816d402bb856a0c7 100644 (file)
@@ -1404,7 +1404,7 @@ extern "C" {
       return F_false;
     }
 
-    for (f_array_length_t i = 0; i < name.used; ++i) {
+    for (f_array_length_t i = 1; i < name.used; ++i) {
 
       if (!(isalnum(name.string[i]) || name.string[i] == '_')) {
         return F_false;