mirror of https://github.com/xzeldon/htop.git
Tiny cleanup from review comments
This commit is contained in:
parent
6e6334e603
commit
711a7aacb0
4
Header.c
4
Header.c
|
@ -87,10 +87,10 @@ static void Header_addMeterByName(Header* this, const char* name, MeterModeId mo
|
||||||
char* end, dynamic[32] = {0};
|
char* end, dynamic[32] = {0};
|
||||||
if (sscanf(paren, "(%30s)", dynamic)) { // DynamicMeter
|
if (sscanf(paren, "(%30s)", dynamic)) { // DynamicMeter
|
||||||
if ((end = strrchr(dynamic, ')')) == NULL)
|
if ((end = strrchr(dynamic, ')')) == NULL)
|
||||||
return; // indicate htoprc parse failure
|
return; // htoprc parse failure
|
||||||
*end = '\0';
|
*end = '\0';
|
||||||
if (!DynamicMeter_search(this->pl->dynamicMeters, dynamic, ¶m))
|
if (!DynamicMeter_search(this->pl->dynamicMeters, dynamic, ¶m))
|
||||||
return; // indicates name lookup failure
|
return; // name lookup failure
|
||||||
} else {
|
} else {
|
||||||
param = 0;
|
param = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue