Now the first one of certain ambiguous tags wins. Alternatively to
this patch we could have called free() before xstrdup().
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
char *p, *v;
int len = strlen(pattern);
- if (!*line)
+ /* don't re-fill already found tags, first one wins */
+ if (!*line || *value)
return 0;
/* pattern */
CPU MHz: 1064.000
CPU max MHz: 1996.0000
CPU min MHz: 1064.0000
-BogoMIPS: 3989.44
+BogoMIPS: 3990.31
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
CPU MHz: 1199.000
CPU max MHz: 2667.0000
CPU min MHz: 1199.0000
-BogoMIPS: 5319.97
+BogoMIPS: 5319.92
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K