diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2025-11-16 16:30:28 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2025-11-16 16:30:28 +0100 |
| commit | bd9cfa05d376c6e5f5e0afc1245e1b76248d689a (patch) | |
| tree | deceeca9008c34413a92548d1e44fd9f2e79bf83 /src | |
| parent | ae669917ba52bec2c99dd1741779447965d82dda (diff) | |
Allow user to only provide part of the date
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -242,7 +242,7 @@ static void ftag_add_one_file(sqlite3 *db, tm.tm_year -= 1900; tm.tm_mon -= 1; date = mktime(&tm); - if (rc != 3) { + if (rc <= 0) { perror("sccanf"); exit(EXIT_FAILURE); } |
