diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-09-02 22:32:40 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-04 09:48:53 +0200 |
commit | 7891cdc55265a3435bd0d9b4ed7fc5b9b9c937ee (patch) | |
tree | 20c4ff72b3b8ee5a1392daf60d07506ef9fe1599 /Settings.c | |
parent | b9fdf1c2a1a00867d68ff66ace5c4ceb978561e3 (diff) |
Reduce variable scope
Also avoid declaring variables of different type, pointer and array, in
the same line.
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -134,8 +134,9 @@ static void Settings_readFields(Settings* settings, const char* line) { } // Dynamically-defined columns are always stored by-name. - char* end, dynamic[32] = {0}; + char dynamic[32] = {0}; if (sscanf(ids[i], "Dynamic(%30s)", dynamic)) { + char* end; if ((end = strrchr(dynamic, ')')) == NULL) continue; *end = '\0'; |