# HG changeset patch # User Christian Hammond # Date 1049677199 0 # Node ID b3d9195777bb4ef59081f713814c554682bb1503 # Parent dfec167391a52da7bc3103d7db3a631048c7175d [gaim-migrate @ 5400] Empty sound and command fields no longer crash gaim. committer: Tailor Script diff -r dfec167391a5 -r b3d9195777bb src/gtkpounce.c --- 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();