changeset 39277:df33715cdcf8

(Fx_window_property): Handle case that property gets deleted between the two calls to XGetWindowProperty.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 13 Sep 2001 12:56:07 +0000
parents fd3e413c477a
children 4ce8031d94f1
files src/xfns.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Thu Sep 13 12:41:41 2001 +0000
+++ b/src/xfns.c	Thu Sep 13 12:56:07 2001 +0000
@@ -10279,7 +10279,7 @@
 			       &actual_type, &actual_format, 
 			       &actual_size, &bytes_remaining, 
 			       (unsigned char **) &tmp_data);
-      if (rc == Success)
+      if (rc == Success && tmp_data)
 	prop_value = make_string (tmp_data, size);
 
       XFree (tmp_data);