diff options
author | Avinash Sonawane <rootkea@gmail.com> | 2021-11-12 10:12:10 +0530 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2021-11-17 20:57:26 +0000 |
commit | f0540f8a034c4cba5f4086eb7f64e3748747491f (patch) | |
tree | c07cbacca7909eff15fdb746ba117480de7978c6 /xfconfd | |
parent | 619ca4f10f9f05d35cbc516861572e7dfb4c7e29 (diff) | |
download | xfconf-f0540f8a034c4cba5f4086eb7f64e3748747491f.tar.gz |
Remove memset() overhead
Diffstat (limited to 'xfconfd')
-rw-r--r-- | xfconfd/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfconfd/main.c b/xfconfd/main.c index 3fbca0e..1965210 100644 --- a/xfconfd/main.c +++ b/xfconfd/main.c @@ -137,7 +137,7 @@ main(int argc, GMainLoop *mloop; XfconfDaemon *xfconfd; GError *error = NULL; - struct sigaction act; + struct sigaction act = {0}; GIOChannel *signal_io; const gchar *is_test_mode; guint signal_watch = 0; @@ -158,7 +158,6 @@ main(int argc, { NULL, 0, 0, 0, 0, NULL, NULL }, }; - memset(&act, 0, sizeof(act)); act.sa_handler = sighandler; act.sa_flags = SA_RESTART; |