From: Paul Mangan Date: Sun, 25 Jan 2004 10:50:04 +0000 (+0000) Subject: check for NULL pointers X-Git-Tag: rel_0_9_9~23 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=030a2dd811a2005f3feaa0d58443fef674cdd6be check for NULL pointers --- diff --git a/ChangeLog.claws b/ChangeLog.claws index c9c225222..d252ab03e 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,13 +1,13 @@ +2004-01-25 [paul] 0.9.8claws48 + + src/prefs_ext_prog.c + apply Alfons' patch to check for NULL pointers + fixes bug #424 + 2004-01-25 [paul] 0.9.8claws47 * sync with 0.9.8cvs8 see ChangeLog 2004-01-23 - - * tools/mbox_convert.pl - Fixed (hopefully) to account for From lines - that are of various lengths and that might have - timezone info at the end - submitted by Fred Marton 2004-01-25 [thorsten] 0.9.8claws46 diff --git a/configure.ac b/configure.ac index ca88a791f..f779df24e 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=8 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=47 +EXTRA_VERSION=48 if test $EXTRA_VERSION -eq 0; then VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws else diff --git a/src/prefs_ext_prog.c b/src/prefs_ext_prog.c index d96e2eee4..e44d1f364 100644 --- a/src/prefs_ext_prog.c +++ b/src/prefs_ext_prog.c @@ -142,7 +142,7 @@ void prefs_ext_prog_create_widget(PrefsPage *_page, GtkWindow *window, "kterm -e lynx '%s'", NULL); uri_entry = GTK_COMBO (uri_combo)->entry; - gtk_entry_set_text(GTK_ENTRY(uri_entry), prefs_common.uri_cmd); + gtk_entry_set_text(GTK_ENTRY(uri_entry), prefs_common.uri_cmd ? prefs_common.uri_cmd : ""); printcmd_label = gtk_label_new (_("Print command")); gtk_widget_show(printcmd_label); @@ -158,7 +158,7 @@ void prefs_ext_prog_create_widget(PrefsPage *_page, GtkWindow *window, gtk_table_attach(GTK_TABLE (table2), printcmd_entry, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); - gtk_entry_set_text(GTK_ENTRY(printcmd_entry), prefs_common.print_cmd); + gtk_entry_set_text(GTK_ENTRY(printcmd_entry), prefs_common.print_cmd ? prefs_common.print_cmd : ""); exteditor_label = gtk_label_new (_("Text editor")); gtk_widget_show(exteditor_label); @@ -185,7 +185,7 @@ void prefs_ext_prog_create_widget(PrefsPage *_page, GtkWindow *window, NULL); exteditor_entry = GTK_COMBO (exteditor_combo)->entry; gtk_entry_set_text(GTK_ENTRY(exteditor_entry), - prefs_common.ext_editor_cmd); + prefs_common.ext_editor_cmd ? prefs_common.ext_editor_cmd : ""); image_viewer_label = gtk_label_new (_("Image viewer")); gtk_widget_show(image_viewer_label); @@ -203,7 +203,7 @@ void prefs_ext_prog_create_widget(PrefsPage *_page, GtkWindow *window, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_text(GTK_ENTRY(image_viewer_entry), - prefs_common.mime_image_viewer); + prefs_common.mime_image_viewer ? prefs_common.mime_image_viewer : ""); audio_player_label = gtk_label_new (_("Audio player")); gtk_widget_show(audio_player_label); @@ -221,7 +221,7 @@ void prefs_ext_prog_create_widget(PrefsPage *_page, GtkWindow *window, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_text(GTK_ENTRY(audio_player_entry), - prefs_common.mime_audio_player); + prefs_common.mime_audio_player ? prefs_common.mime_audio_player : ""); prefs_ext_prog->window = GTK_WIDGET(window); prefs_ext_prog->uri_entry = uri_entry;