Skip to content

Commit a7017a4

Browse files
committed
squash! pam: Config file support
Address false positive etc.
1 parent 93c2b32 commit a7017a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cfg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ static void cfg_load_buffer(cfg_t *cfg, char *buffer) {
210210
}
211211

212212
static int cfg_load_defaults(cfg_t *cfg, const char *config_path) {
213-
int fd, r;
214-
size_t fsize;
213+
int fd = -1, r;
214+
size_t fsize = 0;
215215
char *buffer = NULL;
216216

217217
r = open_safely(&fd, &fsize, config_path ? config_path : CFG_DEFAULT_PATH);

0 commit comments

Comments
 (0)