]> code.delx.au - pulseaudio/blobdiff - src/utils/pax11publish.c
xcb: Ensure the XCB connection is valid before using it.
[pulseaudio] / src / utils / pax11publish.c
index 111bee2392e23b0da625f3a7fd4f76c79659e124..62b798c5a69ecd32e5d15f019d6919c348396e4f 100644 (file)
@@ -100,6 +100,11 @@ int main(int argc, char *argv[]) {
         goto finish;
     }
 
+    if (xcb_connection_has_error(xcb)) {
+        pa_log(_("xcb_connection_has_error() returned true"));
+        goto finish;
+    }
+
     switch (mode) {
         case DUMP: {
             char t[1024];