Browse Source

lspci: ignore blank lines

K. Lange 2 years ago
parent
commit
33866f7623
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/lspci.c

+ 1 - 1
apps/lspci.c

@@ -68,7 +68,7 @@ int main(int argc, char * argv[]) {
 	while (!feof(f)) {
 		char line[1024];
 		fgets(line, 1024, f);
-		if (line[0] == ' ') {
+		if (line[0] == ' ' || line[0] == '\n') {
 			/* Skip; don't care about this information */
 			continue;
 		}