diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-31 13:25:21 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-31 13:25:21 +0530 |
commit | 6aab4200e8c920110c9130500c19108f06732da5 (patch) | |
tree | 4394bcb034739ca6a6ca141b5cae29c9f74fbd45 /src/msg.c | |
parent | 950fdee16ad3433c536d04d58e356803fd204d11 (diff) |
main: free buffer on sigint
Diffstat (limited to 'src/msg.c')
-rw-r--r-- | src/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -132,10 +132,10 @@ run(void) { time_t rawtime; struct tm *timeinfo; - time(&rawtime); timeinfo = localtime(&rawtime); printf("Generation started at: %s", asctime(timeinfo)); + struct stat sb; if (stat(msg->base_directory, &sb) != 0 || !S_ISDIR(sb.st_mode)) { printf("%s does not exist.\n", msg->base_directory); |