Skip to content

Commit bf9a2b5

Browse files
committed
fix uninitialized variable.
1 parent 2b0faf0 commit bf9a2b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/esp_littlefs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2382,7 +2382,7 @@ static int esp_littlefs_update_mtime_attr(esp_littlefs_t *efs, const char *path,
23822382
*/
23832383
static time_t esp_littlefs_get_updated_time(esp_littlefs_t *efs, vfs_littlefs_file_t *file, const char *path)
23842384
{
2385-
time_t t;
2385+
time_t t = 0;
23862386
#if CONFIG_LITTLEFS_MTIME_USE_SECONDS
23872387
// use current time
23882388
t = time(NULL);

0 commit comments

Comments
 (0)