diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:32 +0000 |
commit | 8bb05ac73a5b448b339ce0bc8d396c82c459b47f (patch) | |
tree | 1fdda006866bca20d41cb206767ea5241e36852f /libsmartcols/samples/continuous.c | |
parent | Adding debian version 2.39.3-11. (diff) | |
download | util-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.tar.xz util-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.zip |
Merging upstream version 2.40.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libsmartcols/samples/continuous.c')
-rw-r--r-- | libsmartcols/samples/continuous.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsmartcols/samples/continuous.c b/libsmartcols/samples/continuous.c index 6bdba6e..432b027 100644 --- a/libsmartcols/samples/continuous.c +++ b/libsmartcols/samples/continuous.c @@ -65,7 +65,7 @@ fail: err(EXIT_FAILURE, "failed to create output line"); } -int main(int argc, char *argv[]) +int main(void) { struct libscols_table *tb; size_t i; @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) struct libscols_line *line; struct timeval now; int done = 0; - char *timecell = xmalloc( timecellsz ); + char *timecell = xcalloc(1, timecellsz ); line = add_line(tb, i); |