aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-04-16 13:07:17 -0700
committerPaul Eggert2011-04-16 13:07:17 -0700
commit91a3e27bb7ee79474b8b470b3b8d755f92e5721f (patch)
treec970bc82b26b0de234c6b60be7db7f95e17199b9
parent7a3fb1252cb12c742b395fd53a6ce6a9e473704f (diff)
downloademacs-91a3e27bb7ee79474b8b470b3b8d755f92e5721f.tar.gz
emacs-91a3e27bb7ee79474b8b470b3b8d755f92e5721f.zip
* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xfns.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d1343b246ee..6cfb8bd3ed9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-04-16 Paul Eggert <eggert@cs.ucla.edu> 12011-04-16 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * xfns.c (Fx_file_dialog): Rename local to avoid shadowing.
4
3 * xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var. 5 * xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.
4 6
5 * xfns.c (x_real_positions): Mark locals as initialized. 7 * xfns.c (x_real_positions): Mark locals as initialized.
diff --git a/src/xfns.c b/src/xfns.c
index 846ba16d1ba..51aca3e9670 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5462,12 +5462,12 @@ Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */)
5462 /* Get the result. */ 5462 /* Get the result. */
5463 if (result == XmCR_OK) 5463 if (result == XmCR_OK)
5464 { 5464 {
5465 XmString text; 5465 XmString text_string;
5466 String data; 5466 String data;
5467 5467
5468 XtVaGetValues (dialog, XmNtextString, &text, NULL); 5468 XtVaGetValues (dialog, XmNtextString, &text_string, NULL);
5469 XmStringGetLtoR (text, XmFONTLIST_DEFAULT_TAG, &data); 5469 XmStringGetLtoR (text_string, XmFONTLIST_DEFAULT_TAG, &data);
5470 XmStringFree (text); 5470 XmStringFree (text_string);
5471 file = build_string (data); 5471 file = build_string (data);
5472 XtFree (data); 5472 XtFree (data);
5473 } 5473 }