speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH (speechd) 2/3] Fix a locking issue in _output_get_voices.


From: Christopher Brannon
Subject: [PATCH (speechd) 2/3] Fix a locking issue in _output_get_voices.
Date: Sun, 14 Feb 2010 15:57:51 -0600

After a certain error condition, this function returned while
output_layer_mutex was locked.  Fixed by replacing return with OL_RET.
---
 src/server/output.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/server/output.c b/src/server/output.c
index 74fc171..9f28e6d 100644
--- a/src/server/output.c
+++ b/src/server/output.c
@@ -330,7 +330,7 @@ _output_get_voices(OutputModule *module)
 
   if (module == NULL){
     MSG(1, "ERROR: Can't list voices for broken output module");
-    return -1;
+    OL_RET(-1);
   }
   output_send_data("LIST VOICES\n", module, 0);
   reply = output_read_reply(module);
-- 
1.6.6.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]