Commit 91a3e27b authored by Paul Eggert's avatar Paul Eggert

* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.

parent 7a3fb125
2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.
* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.
* xfns.c (x_real_positions): Mark locals as initialized.
......
......@@ -5462,12 +5462,12 @@ Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */)
/* Get the result. */
if (result == XmCR_OK)
{
XmString text;
XmString text_string;
String data;
XtVaGetValues (dialog, XmNtextString, &text, NULL);
XmStringGetLtoR (text, XmFONTLIST_DEFAULT_TAG, &data);
XmStringFree (text);
XtVaGetValues (dialog, XmNtextString, &text_string, NULL);
XmStringGetLtoR (text_string, XmFONTLIST_DEFAULT_TAG, &data);
XmStringFree (text_string);
file = build_string (data);
XtFree (data);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment