fix aborts introduced by 67d97f9f54921affa84108311b4b1ca659b051a9
authorGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 2 Jan 2009 15:52:03 +0000 (16:52 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 2 Jan 2009 15:52:03 +0000 (16:52 +0100)
bin/booh

index b9c87e5f6555bb6d1cb6c7cc0c002629390e9095..16233a21f3a00e35f41539c8da662ffb75d6e2b3 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -544,11 +544,11 @@ def change_seektime(xmldir, attributes_prefix, value)
 end
 
 def ask_new_seektime(xmldir, attributes_prefix)
-    rexml_thread_protect {
+    value = rexml_thread_protect {
         if xmldir
-            value = xmldir.attributes["#{attributes_prefix}seektime"]
+            xmldir.attributes["#{attributes_prefix}seektime"]
         else
-            value = ''
+            ''
         end
     }
 
@@ -605,11 +605,11 @@ def change_pano_amount(xmldir, attributes_prefix, value)
 end
 
 def ask_new_pano_amount(xmldir, attributes_prefix)
-    rexml_thread_protect {
+    value = rexml_thread_protect {
         if xmldir
-            value = xmldir.attributes["#{attributes_prefix}pano-amount"]
+            xmldir.attributes["#{attributes_prefix}pano-amount"]
         else
-            value = nil
+            nil
         end
     }