Spawn.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:35:53 +0000 (18:35 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:35:53 +0000 (18:35 +0800)
Spawn.vala

index 9a97c03..f2a60c5 100644 (file)
@@ -397,10 +397,10 @@ public class Spawn : Object
        // print("prop: " + prop);
         var _this = this;
         string str_return;
-       
+        
         //print(JSON.stringify(ch, null,4));
         while (true) {
+            var buffer = new StringBuffer("");
             try {
                 var status = ch.read_line( buffer,  term_pos );
             catch (Error e) {