[Tkabber-dev] r1984 - trunk/tkabber/plugins/iq

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Tue Nov 15 16:46:08 MSK 2011


Author: kostix
Date: 2011-11-15 17:46:08 +0400 (Tue, 15 Nov 2011)
New Revision: 1984

Modified:
   trunk/tkabber/plugins/iq/version.tcl
Log:
Fix parsing output of lsb_release binary

Sensibly handle a case when we failed to parse anything
usable from the lsb_release's output.


Modified: trunk/tkabber/plugins/iq/version.tcl
===================================================================
--- trunk/tkabber/plugins/iq/version.tcl	2011-10-06 12:06:05 UTC (rev 1983)
+++ trunk/tkabber/plugins/iq/version.tcl	2011-11-15 13:46:08 UTC (rev 1984)
@@ -50,6 +50,7 @@
 	}
     }
 
+    set out ""
     foreach key {description release codename} {
         if {[info exists fields($key)]} {
 	    append out "$fields($key) "



More information about the Tkabber-dev mailing list