[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#365291: xbase-clients: xdbedizzy crashes immediately



This bug is caused by incorrectly ifdef'ing parts of code with
USE_XPRINT, leading to skipping initialization code if built without
xprint support.
Here's a fix:

# HG changeset patch
# User ejka@imfi.kspu.ru
# Node ID 973ecd7376218cdaa4298cfc4dda3267046e1ef3
# Parent  1fe2f9309b40131556685f6aa29f782b23cdf769
merge

diff -r 1fe2f9309b40 -r 973ecd737621 app/xbase-clients/xdbedizzy-X11R7.0-1.0.1/xdbedizzy.c
--- a/app/xbase-clients/xdbedizzy-X11R7.0-1.0.1/xdbedizzy.c	Sun Apr 30 13:38:36 2006 +0800
+++ b/app/xbase-clients/xdbedizzy-X11R7.0-1.0.1/xdbedizzy.c	Sun Apr 30 13:40:29 2006 +0800
@@ -701,8 +701,8 @@ int main(int argc, char *argv[])
         /* Obtain some info about page geometry */
         XpGetPageDimensions(dpy, pcontext, &dummy, &dummy, &winrect);
     }
-#endif
     else
+#endif
     {
         dpy = XOpenDisplay(display_name);
         if (dpy == NULL) {

Reply to: