CHAR8 *key, *value;
UINTN linelen;
- /* terminate */
skip:
+ /* terminate */
next = line;
while (*next && !strchra((CHAR8 *)"\n\r", *next))
next++;
next++;
/* trailing whitespace */
- while (linelen && strchra((CHAR8 *)" \t", line[linelen-1]))
+ while (linelen > 0 && strchra((CHAR8 *)" \t", line[linelen-1]))
linelen--;
line[linelen] = '\0';
static VOID config_load(Config *config, EFI_HANDLE *device, EFI_FILE *root_dir, CHAR16 *loaded_image_path) {
EFI_FILE_HANDLE entries_dir;
EFI_STATUS err;
- CHAR8 *content;
+ CHAR8 *content = NULL;
INTN sec;
UINTN len;
UINTN i;
CHAR16 buf[256];
UINTN bufsize;
EFI_FILE_INFO *f;
- CHAR8 *content;
+ CHAR8 *content = NULL;
UINTN len;
bufsize = sizeof(buf);