summaryrefslogtreecommitdiff
path: root/source/t/xfig/xfig.3.2.4-null.diff
blob: 46120af18cb635a42aff9e62dd1513101557056e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- w_dir.c
+++ w_dir.c	2004-03-22 12:17:21.000000000 +0000
@@ -126,6 +126,8 @@
 {
     XawListReturnStruct *ret_struct = (XawListReturnStruct *) call_data;
 
+    if (!ret_struct)
+	return;
     strcpy(CurrentSelectionName, ret_struct->string);
     FirstArg(XtNstring, CurrentSelectionName);
     if (browse_up) {
@@ -160,6 +162,8 @@
 {
     XawListReturnStruct *ret_struct = (XawListReturnStruct *) call_data;
 
+    if (!ret_struct)
+	return;
     strcpy(CurrentSelectionName, ret_struct->string);
     DoChangeDir(CurrentSelectionName);
 }
--- w_library.c
+++ w_library.c	2004-03-22 12:19:10.000000000 +0000
@@ -461,6 +461,8 @@
     int		    new_obj;
     XawListReturnStruct *ret_struct = (XawListReturnStruct *) call_data;
 
+    if (!ret_struct)
+	return;
     new_obj = ret_struct->list_index;
     if (icons_made) {
 	/* unhighlight the current view icon */
--- w_srchrepl.c
+++ w_srchrepl.c	2004-03-22 12:20:38.000000000 +0000
@@ -894,6 +894,8 @@
 {
     XawListReturnStruct *ret_struct = (XawListReturnStruct *) call_data;
 
+    if (!ret_struct)
+	return;
     /* save the selected word */
     strcpy(selected_word, ret_struct->string);
     /* copy the word to the correct_word ascii widget */
--- w_style.c
+++ w_style.c	2004-03-22 12:13:00.000000000 +0000
@@ -585,7 +585,8 @@
 
     XawListReturnStruct *ret_struct = (XawListReturnStruct *) call_data;
 
-    current_family = ret_struct->list_index;
+    if (ret_struct)
+	current_family = ret_struct->list_index;
     current_style = -1;
     style_update ();
 }
@@ -598,7 +599,8 @@
 {
     XawListReturnStruct *ret_struct = (XawListReturnStruct *) call_data;
 
-    current_style = ret_struct->list_index;
+    if (ret_struct)
+	current_style = ret_struct->list_index;
     style_update ();
     cur_updatemask = set_style (&current_family_set[current_family].style[current_style]);