adding additional check if .chip files contain empty lines

pull/1234/head
Lucas Sinn 2022-03-16 09:31:19 +01:00
rodzic a99a626e69
commit 3b328b26bd
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -60,6 +60,10 @@ void process_chipfile(char *fname) {
if (strncmp(buf, "#", strlen("#")) == 0)
continue; // ignore comments
if ((strncmp(buf, "\n", strlen("\n")) == 0) ||
(strncmp(buf, " ", strlen(" ")) == 0))
continue; // ignore empty lines
sscanf(buf, "%s %s", word, value);
if (strcmp (word, "dev_type") == 0) {