Commit 8ee057fd authored by Michael Tremer's avatar Michael Tremer

database: Initialize r on create

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 937f6714
......@@ -480,7 +480,7 @@ static void loc_database_free(struct loc_database* db) {
LOC_EXPORT int loc_database_new(struct loc_ctx* ctx, struct loc_database** database, FILE* f) {
struct loc_database* db = NULL;
int r;
int r = 1;
// Fail on invalid file handle
if (!f) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment