diff options
author | carlosg <carlosg> | 2007-04-08 23:24:49 +0000 |
---|---|---|
committer | carlosg <carlosg> | 2007-04-08 23:24:49 +0000 |
commit | b667d5f3d414053b6b1caa4413f10a67145f41f0 (patch) | |
tree | 53680ae8d9df0dfeb580f961c24018d1159c0349 | |
parent | cdaf4eadb3175b15c47e20276faf7639c206d862 (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-- | ChangeLog | 5 | ||||
-rw-r--r-- | Utils/Parse.pm | 7 |
2 files changed, 10 insertions, 2 deletions
@@ -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; |