1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
--- a/src/festival.c
+++ b/src/festival.c
@@ -534,11 +534,9 @@ plugin_load(PurplePlugin *plugin) {
snprintf(proc,1024, "%s %s", snd((char *)purple_prefs_get_string("/pidgin/sound/method")), line);
purple_debug(PURPLE_DEBUG_INFO, "pidgin festival","%s", proc);
- int errno=0;
festival_pf= popen(proc,"w");
- if(errno) {
- pclose(festival_pf);
+ if(!festival_pf) {
return FALSE;
}
|