From 5c2a5e2c10202397e5794d44ea4b68720e7b1421 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Thu, 5 Feb 1998 21:44:25 +0000 Subject: [PATCH] core dump fix git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@513 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/combocell.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/register/combocell.c b/src/register/combocell.c index 6086ba9cd1..1c24e1a790 100644 --- a/src/register/combocell.c +++ b/src/register/combocell.c @@ -370,17 +370,14 @@ static void selectCB (Widget w, XtPointer cd, XtPointer cb ) if ( (XmCR_SINGLE_SELECT == selection->reason) || (XmCR_BROWSE_SELECT == selection->reason) ) { choice = XmCvtXmStringToCT (selection->value); -printf ("aaaaaaaaa 0x%x \n", choice); + if (!choice) choice = XtNewString (""); /* null if blank/unselect */ } else if (XmCR_UNSELECT == selection->reason) { choice = XtNewString (""); -printf ("bbbbbbbbb \n"); } else { -printf ("ccccccccc\n"); return; } -printf ("yo choice %p %s \n", choice); XbaeMatrixSetCell (box->parent, box->currow, box->curcol, choice); SET (&(cell->cell), choice); XtFree (choice);