diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-28 21:14:50 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-10-03 19:05:40 +0200 |
commit | 42946ec113e8ae6d6bc114dbd90e9721f464abfb (patch) | |
tree | 3b30fc9a612905cd4e2b868804ac81cd2c90b403 /Settings.c | |
parent | b82a13c6ba48eb8711071342bec80798aca5de1c (diff) |
Introduce ARRAYSIZE
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ in the source distribution for its full text. void Settings_delete(Settings* this) { free(this->filename); free(this->fields); - for (unsigned int i = 0; i < (sizeof(this->columns)/sizeof(MeterColumnSettings)); i++) { + for (unsigned int i = 0; i < ARRAYSIZE(this->columns); i++) { String_freeArray(this->columns[i].names); free(this->columns[i].modes); } |