From 5ebd1b24a934767fef62d4cfa643b1191c699a23 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Tue, 11 Oct 2011 11:54:48 -0400 Subject: [PATCH] fix up iterator in parse_proc_interrupts There was a problem with the iterator loop to skip leading whitespace in parse_proc_interrupts - it skipped too far, this brings it back --- procinterrupts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/procinterrupts.c b/procinterrupts.c index 2c1bb25..ee061dc 100644 --- a/procinterrupts.c +++ b/procinterrupts.c @@ -68,8 +68,9 @@ void parse_proc_interrupts(void) /* lines with letters in front are special, like NMI count. Ignore */ c = line; - while (isblank(*(c++))) - ; + while (isblank(*(c))) + c++; + if (!(*c>='0' && *c<='9')) break; c = strchr(line, ':');