diff --git a/src/utils_cmds.c b/src/utils_cmds.c
index f6675969fa55d543dccd7a508d6fc82359d504ae..1f53ad1d6a4da8bc966d2c67f024a29d2517ddef 100644 (file)
--- a/src/utils_cmds.c
+++ b/src/utils_cmds.c
size_t *ret_len, char ***ret_fields,
cmd_error_handler_t *err)
{
- char *string, *field;
+ char *field;
bool in_field, in_quotes;
size_t estimate, len;
estimate = 0;
in_field = false;
- for (string = buffer; *string != '\0'; ++string)
+ for (char *string = buffer; *string != '\0'; ++string)
{
/* Make a quick worst-case estimate of the number of fields by
* counting spaces and ignoring quotation marks. */
field = NULL;
in_field = false;
in_quotes = false;
- for (string = buffer; *string != '\0'; string++)
+ for (char *string = buffer; *string != '\0'; string++)
{
if (isspace ((int)string[0]))
{