[wiki] [sites] [dwm][patch][swallow] fix seg fault for windows with out pid prop || 0x1bi
commit 17262a2218936c4bb6ffd665d00c479ff546bf7c
Author: 0x1bi <ben_AT_0x1bi.net>
Date: Sat Aug 8 09:09:42 2020 -0400
[dwm][patch][swallow] fix seg fault for windows with out pid prop
diff --git a/dwm.suckless.org/patches/swallow/dwm-swallow-20200807-b2de9b0.diff b/dwm.suckless.org/patches/swallow/dwm-swallow-20200807-b2de9b0.diff
index 06d9e56d..b3dbf461 100644
--- a/dwm.suckless.org/patches/swallow/dwm-swallow-20200807-b2de9b0.diff
+++ b/dwm.suckless.org/patches/swallow/dwm-swallow-20200807-b2de9b0.diff
_AT_@ -302,7 +302,7 @@ index 9fd0286..e9f08f7 100644
+ unsigned char *prop;
+ pid_t ret;
+
-+ if (XGetWindowProperty(dpy, w, XInternAtom(dpy, "_NET_WM_PID", 1), 0, 1, False, AnyPropertyType, &type, &format, &len, &bytes, &prop) != Success && !prop)
++ if (XGetWindowProperty(dpy, w, XInternAtom(dpy, "_NET_WM_PID", 1), 0, 1, False, AnyPropertyType, &type, &format, &len, &bytes, &prop) != Success || !prop)
+ return 0;
+
+ ret = *(pid_t*)prop;
Received on Sat Aug 08 2020 - 15:09:45 CEST
This archive was generated by hypermail 2.3.0
: Sat Aug 08 2020 - 15:12:42 CEST