Skip to content

Commit edb7c61

Browse files
vaygrcorecode
authored andcommitted
Fix compilation with older GCC versions
1 parent 430f3b5 commit edb7c61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ parse_conf(const char *config_path)
226226
if (fingerprint == NULL) {
227227
errlogx(EX_CONFIG, "fingerprint allocation failed");
228228
}
229-
for (unsigned int i = 0; i < SHA256_DIGEST_LENGTH; i++) {
229+
unsigned int i;
230+
for (i = 0; i < SHA256_DIGEST_LENGTH; i++) {
230231
if(sscanf(data + 2 * i, "%02hhx", &fingerprint[i]) != 1) {
231232
errlogx(EX_CONFIG, "failed to read fingerprint");
232233
}

0 commit comments

Comments
 (0)