Skip to content

Commit 7e4930c

Browse files
author
s.fukanchik
committed
Merge branch 'REL_2_6-PBCKP-361' into 'REL_2_6'
PBCKP-361 add 'noreturn' logging function See merge request eepbk/pg_probackup_ee!3
2 parents abf10d7 + 8ef0274 commit 7e4930c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fio_get_agent_version(int* protocol, char* payload_buf, size_t payload_buf_size)
262262
pio_file_kind_e
263263
pio_statmode2file_kind(mode_t mode, const char* path)
264264
{
265-
pio_file_kind_e kind;
265+
pio_file_kind_e kind = PIO_KIND_UNKNOWN;
266266
if (S_ISREG(mode))
267267
kind = PIO_KIND_REGULAR;
268268
else if (S_ISDIR(mode))
@@ -296,7 +296,7 @@ pio_statmode2file_kind(mode_t mode, const char* path)
296296
pio_file_kind_e
297297
pio_str2file_kind(const char* str, const char* path)
298298
{
299-
pio_file_kind_e kind;
299+
pio_file_kind_e kind = PIO_KIND_UNKNOWN;
300300
if (strncmp(str, "reg", 3) == 0)
301301
kind = PIO_KIND_REGULAR;
302302
else if (strncmp(str, "dir", 3) == 0)

0 commit comments

Comments
 (0)