chiark / gitweb /
sd-daemon: remove unnecessary memset calls
[elogind.git] / src / libsystemd-daemon / sd-daemon.c
index 763e079b4ec0ac7cfa9bda49341e29a0672f2e87..863ac7529060d7560e765aeb612dcebc422fb259 100644 (file)
@@ -152,7 +152,6 @@ _sd_export_ int sd_is_fifo(int fd, const char *path) {
         if (fd < 0)
                 return -EINVAL;
 
-        memset(&st_fd, 0, sizeof(st_fd));
         if (fstat(fd, &st_fd) < 0)
                 return -errno;
 
@@ -162,7 +161,6 @@ _sd_export_ int sd_is_fifo(int fd, const char *path) {
         if (path) {
                 struct stat st_path;
 
-                memset(&st_path, 0, sizeof(st_path));
                 if (stat(path, &st_path) < 0) {
 
                         if (errno == ENOENT || errno == ENOTDIR)