# HG changeset patch # User Jaroslav Hajek # Date 1233346633 -3600 # Node ID e01c6355304f5ca049cc3c05dc9d1a597c3c9910 # Parent 579f1f54cc3a871518cd18bd095c4827d0f4b46a fix string lookup in empty cells diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-01-30 Jaroslav Hajek + + * DLD-FUNCTIONS/lookup.cc (Flookup): Add missing check. + 2009-01-29 John W. Eaton * pt-stmt.cc (tree_statement::eval): Check diff --git a/src/DLD-FUNCTIONS/lookup.cc b/src/DLD-FUNCTIONS/lookup.cc --- a/src/DLD-FUNCTIONS/lookup.cc +++ b/src/DLD-FUNCTIONS/lookup.cc @@ -259,7 +259,7 @@ // query just the first cell to verify it's a string - if (table(0).is_string ()) + if (table.is_empty () || table(0).is_string ()) { if (argy.is_cell ()) {