]> granicus.if.org Git - sysstat/commitdiff
Update count.c
authorodubaj <44674278+odubaj@users.noreply.github.com>
Mon, 11 Mar 2019 09:16:50 +0000 (10:16 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2019 09:16:50 +0000 (10:16 +0100)
removed memset() before sscanf() - not needed

count.c

diff --git a/count.c b/count.c
index 6424baae8c07e41edb47d3d2171108dc92d2f65a..3890e924b8ed0ae97d8b2f92245dff321a71f741 100644 (file)
--- a/count.c
+++ b/count.c
@@ -496,7 +496,6 @@ __nr_t get_filesystem_nr(void)
                         * read filesystem type,
                         * if filesystem type is autofs, skip it 
                        */
-                       memset(type, 0, sizeof(type));
                        pos2 = strchr(pos + 1, ' ');
                        if (pos2 == NULL)
                                continue;