summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlosg <carlosg>2007-04-08 23:24:49 +0000
committercarlosg <carlosg>2007-04-08 23:24:49 +0000
commitb667d5f3d414053b6b1caa4413f10a67145f41f0 (patch)
tree53680ae8d9df0dfeb580f961c24018d1159c0349
parentcdaf4eadb3175b15c47e20276faf7639c206d862 (diff)
2007-04-09 Carlos Garnacho <carlosg@gnome.org>
* Utils/Parse.pm (split_all_array_with_pos): only push non empty values. Improves GNOME bug #420213.
-rw-r--r--ChangeLog5
-rw-r--r--Utils/Parse.pm7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 732c390..8229d50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-09 Carlos Garnacho <carlosg@gnome.org>
+
+ * Utils/Parse.pm (split_all_array_with_pos): only push non empty
+ values. Improves GNOME bug #420213.
+
2007-04-08 Carlos Garnacho <carlosg@gnome.org>
* Net-DBus/Makefile.am: improve uninstall rules. Suggested by
diff --git a/Utils/Parse.pm b/Utils/Parse.pm
index f9d5b08..87dc106 100644
--- a/Utils/Parse.pm
+++ b/Utils/Parse.pm
@@ -408,8 +408,11 @@ sub split_all_array_with_pos
foreach $i (@$arr)
{
- @s = split ($sep, $i);
- push @ret, @s[0];
+ if ($i)
+ {
+ @s = split ($sep, $i);
+ push @ret, @s[0];
+ }
}
return \@ret;