summaryrefslogtreecommitdiff
path: root/sysutils/nut/files/patch-clients-upssched.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/nut/files/patch-clients-upssched.c')
-rw-r--r--sysutils/nut/files/patch-clients-upssched.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/nut/files/patch-clients-upssched.c b/sysutils/nut/files/patch-clients-upssched.c
new file mode 100644
index 000000000000..1d2129b03d53
--- /dev/null
+++ b/sysutils/nut/files/patch-clients-upssched.c
@@ -0,0 +1,11 @@
+--- clients/upssched.c.orig 2009-02-19 20:01:40.000000000 +0100
++++ clients/upssched.c 2009-02-19 20:02:00.000000000 +0100
+@@ -595,7 +595,7 @@
+ int pipefd, ret;
+ struct sockaddr_un saddr;
+
+- memset(&sa, '\0', sizeof(saddr));
++ memset(&saddr, '\0', sizeof(saddr));
+ saddr.sun_family = AF_UNIX;
+ snprintf(saddr.sun_path, sizeof(saddr.sun_path), "%s", pipefn);
+