Commit b71c5010 authored by Shashi Guruprasad's avatar Shashi Guruprasad
Browse files

Fixed the bug that caused testsuite test 'tbcmd' to fail. The osfeatures

column in the os_info table is supposed to be NULL if it has no meaningful
value. But then, some of the entries in the DB have '' strings. Fixed
OSFeatureSupported() to check this.
parent f82ab727
......@@ -1595,10 +1595,13 @@ sub OSFeatureSupported($$) {
return 0;
}
foreach my $osfeature (split(',', $query_result->fetchrow_array())) {
if ($feature eq $osfeature) {
return 1;
}
my $osfeatures = $query_result->fetchrow_array();
if (defined($osfeatures)) {
foreach my $osfeature (split(',', $osfeatures)) {
if ($feature eq $osfeature) {
return 1;
}
}
}
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment