From 4762006084fd65b9ab2fcd7e047e61b0c36457ff Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 16 Jan 2008 02:41:22 +0000 Subject: [PATCH] Fix CSV parsing bug where '0' was not recognized as a valid token. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@274 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/tabutils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm b/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm index 4a39e59dd..b5c884fea 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm @@ -190,7 +190,7 @@ sub tabrestore { my $offset=1; my $nextchar; my $ent = ""; - while (not $ent) { + while ($ent eq "") { $offset = index($line,'"',$offset); $offset++; if ($offset <=0) {