mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 10:25:25 +01:00
Fix uninitialized variables in script-generator
This commit is contained in:
parent
133c05426c
commit
f9cf916e5e
1 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ void output_config(FILE *out) {
|
||||||
char *get_var(char *name) {
|
char *get_var(char *name) {
|
||||||
/* Search through existing variables. */
|
/* Search through existing variables. */
|
||||||
Variable *var;
|
Variable *var;
|
||||||
Variable *last;
|
Variable *last = NULL;
|
||||||
for (var = variables; var != NULL; var = var->next) {
|
for (var = variables; var != NULL; var = var->next) {
|
||||||
if (strcmp(name, var->name) == 0) {
|
if (strcmp(name, var->name) == 0) {
|
||||||
return var->val;
|
return var->val;
|
||||||
|
|
@ -373,7 +373,7 @@ int interpret(Directive *directive) {
|
||||||
|
|
||||||
Directive *interpreter(Directive *directives) {
|
Directive *interpreter(Directive *directives) {
|
||||||
Directive *directive;
|
Directive *directive;
|
||||||
Directive *last;
|
Directive *last = NULL;
|
||||||
for (directive = directives; directive != NULL; directive = directive->next) {
|
for (directive = directives; directive != NULL; directive = directive->next) {
|
||||||
if (interpret(directive)) {
|
if (interpret(directive)) {
|
||||||
/* This means this directive needs to be removed from the linked list. */
|
/* This means this directive needs to be removed from the linked list. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue