mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Fix order of calloc arguments.
(Patch by Dawid Gajownik)
This commit is contained in:
2
IncSet.c
2
IncSet.c
@ -77,7 +77,7 @@ static inline void IncMode_done(IncMode* mode) {
|
||||
}
|
||||
|
||||
IncSet* IncSet_new(FunctionBar* bar) {
|
||||
IncSet* this = calloc(sizeof(IncSet), 1);
|
||||
IncSet* this = calloc(1, sizeof(IncSet));
|
||||
IncMode_initSearch(&(this->modes[INC_SEARCH]));
|
||||
IncMode_initFilter(&(this->modes[INC_FILTER]));
|
||||
this->active = NULL;
|
||||
|
Reference in New Issue
Block a user