X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=util.c;h=c0f4451debf0946374314c87e50507bcf30eb107;hp=ddb13317f9b78c2cccf2f61d0fbfee3223e3e11e;hb=14bd2704bbb61a7cf828119cda4f3616f8254871;hpb=41aae0e49764c4ed98b3d0bd3f7c5eab3f26e473 diff --git a/util.c b/util.c index ddb1331..c0f4451 100644 --- a/util.c +++ b/util.c @@ -51,7 +51,7 @@ static char *uci_strdup(struct uci_context *ctx, const char *str) return ptr; } -static bool uci_validate_name(char *str) +static bool uci_validate_name(const char *str) { if (!*str) return false; @@ -97,6 +97,7 @@ lastval: last++; if (!*last) goto error; + *value = last; } if (*section && !uci_validate_name(*section))