From 33866f7623ef481d63dc4bc83fc840e9cac42539 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 4 Feb 2019 17:48:17 +0900 Subject: [PATCH] lspci: ignore blank lines --- apps/lspci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/lspci.c b/apps/lspci.c index 3e6d5750..a9214bb1 100644 --- a/apps/lspci.c +++ b/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; }