diff options
author | Phil Jones <philj56@gmail.com> | 2022-11-25 10:04:08 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-11-25 10:04:08 +0000 |
commit | 40b7be23880e22b19668b922e3319c51713c40f8 (patch) | |
tree | fd5737fa5bdeea55441569ca01e2e9be3a6aca3e /src/config.c | |
parent | 267a92adac852c671c4c0a4a048399c737637602 (diff) |
Fix potentially uninitialised variable.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 8a2b5c8..83321ed 100644 --- a/src/config.c +++ b/src/config.c @@ -201,7 +201,7 @@ void config_load(struct tofi *tofi, const char *filename) } { /* Grab first non-space character on the line. */ - char c; + char c = '\0'; for (char *tmp = line; *tmp != '\0'; tmp++) { c = *tmp; if (!isspace(c)) { |