changeset 5051:b3d9195777bb

[gaim-migrate @ 5400] Empty sound and command fields no longer crash gaim. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 07 Apr 2003 00:59:59 +0000
parents dfec167391a5
children 6a7759f63766
files src/gtkpounce.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkpounce.c	Sun Apr 06 22:32:09 2003 +0000
+++ b/src/gtkpounce.c	Mon Apr 07 00:59:59 2003 +0000
@@ -283,7 +283,7 @@
 	}
 
 	if (pounce_data->actions & GAIM_GTKPOUNCE_SEND_MSG &&
-		*pounce_data->message != '\0') {
+		pounce_data->message != NULL) {
 
 		conv = gaim_find_conversation(pouncee);
 
@@ -297,7 +297,7 @@
 	}
 
 	if (pounce_data->actions & GAIM_GTKPOUNCE_EXEC_CMD &&
-		*pounce_data->command != '\0') {
+		pounce_data->command != NULL) {
 #ifndef _WIN32
 		int pid = fork();
 
@@ -317,7 +317,7 @@
 	}
 
 	if (pounce_data->actions & GAIM_GTKPOUNCE_PLAY_SOUND) {
-		if (*pounce_data->sound != '\0')
+		if (pounce_data->sound != NULL)
 			gaim_sound_play_file(pounce_data->sound);
 		else
 			gaim_sound_play_event(GAIM_SOUND_POUNCE_DEFAULT);
@@ -539,7 +539,7 @@
 	dialog->popup = gtk_check_button_new_with_label(_("Popup notification"));
 	dialog->send_msg = gtk_check_button_new_with_label(_("Send a message"));
 	dialog->exec_cmd = gtk_check_button_new_with_label(_("Execute a command"));
-	dialog->play_sound = gtk_check_button_new_with_label(_("Play a Sound"));
+	dialog->play_sound = gtk_check_button_new_with_label(_("Play a sound"));
 
 	dialog->send_msg_entry   = gtk_entry_new();
 	dialog->exec_cmd_entry   = gtk_entry_new();