tweaks: rename a variable, to be shorter

master
Benno Schulenberg 2019-05-31 12:46:15 +02:00
parent fe40e8867d
commit f9dfca7d5a
1 changed files with 7 additions and 7 deletions

View File

@ -1049,21 +1049,21 @@ void parse_rcfile(FILE *rcstream, bool syntax_only, bool headers_only)
/* When the syntax isn't loaded yet, store extendsyntax commands. */
if (sint->filename != NULL) {
augmentstruct *newextendsyntax = nmalloc(sizeof(augmentstruct));;
augmentstruct *newitem = nmalloc(sizeof(augmentstruct));;
newextendsyntax->filename = strdup(nanorc);
newextendsyntax->lineno = lineno;
newextendsyntax->data = strdup(ptr);
newextendsyntax->next = NULL;
newitem->filename = strdup(nanorc);
newitem->lineno = lineno;
newitem->data = strdup(ptr);
newitem->next = NULL;
if (sint->augmentations != NULL) {
augmentstruct *es = sint->augmentations;
while (es->next != NULL)
es = es->next;
es->next = newextendsyntax;
es->next = newitem;
} else
sint->augmentations = newextendsyntax;
sint->augmentations = newitem;
continue;
}