diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-28 16:11:36 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-28 16:11:36 -0700 |
commit | aa2ba10182681dcf4a9d7526b53d6c78ba421263 (patch) | |
tree | b4544274eda0a88cb07dcb37834d53ac9c5e5258 /src/delete.c | |
parent | 754da40f1a9d7ac5a75a9091b67df68e5da29626 (diff) | |
download | vyatta-cfg-aa2ba10182681dcf4a9d7526b53d6c78ba421263.tar.gz vyatta-cfg-aa2ba10182681dcf4a9d7526b53d6c78ba421263.zip |
remove unnecessary memset calls
Diffstat (limited to 'src/delete.c')
-rw-r--r-- | src/delete.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/delete.c b/src/delete.c index 4f38f54..65dd67e 100644 --- a/src/delete.c +++ b/src/delete.c @@ -127,7 +127,6 @@ boolean set_validate(vtw_def *defp, char *valp) bye("Can not set value (2), no definition for %s", m_path.path); } /* defniition present */ - memset(defp, 0, sizeof(vtw_def)); if ((status = parse_def(defp, t_path.path, FALSE))) { bye("parse error: %d\n", status); } @@ -242,7 +241,6 @@ int main(int argc, char **argv) if (lstat(t_path.path, &statbuf) >= 0 && (statbuf.st_mode & S_IFMT) == S_IFREG) { /* defniition present */ - memset(&def, 0, sizeof(vtw_def)); if ((status = parse_def(&def, t_path.path, FALSE))) { bye("parse error: %d\n", status); } @@ -302,7 +300,6 @@ int main(int argc, char **argv) bye("Can not delete value, no definition for %s", m_path.path); } /* defniition present */ - memset(&def, 0, sizeof(vtw_def)); if ((status = parse_def(&def, t_path.path, FALSE))) { bye("parse error: %d\n", status); } |