changeset 5031:5d1e2102d447

[project @ 2004-09-24 03:50:58 by jwe]
author jwe
date Fri, 24 Sep 2004 03:50:58 +0000
parents 160365410ad4
children 3361e0846469
files scripts/ChangeLog scripts/strings/strcmp.m
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Sep 24 03:22:24 2004 +0000
+++ b/scripts/ChangeLog	Fri Sep 24 03:50:58 2004 +0000
@@ -1,3 +1,8 @@
+2004-09-23  John W. Eaton  <jwe@octave.org>
+
+	* strings/strcmp.m: If args are not strings or cell arrays of
+	strings, return zero instead of reporting an error.
+
 2004-09-22  Federico Zenith  <zenith@chemeng.ntnu.no>
 
 	* control/base/analdemo.m, control/base/are.m, control/base/bddemo.m,
--- a/scripts/strings/strcmp.m	Fri Sep 24 03:22:24 2004 +0000
+++ b/scripts/strings/strcmp.m	Fri Sep 24 03:50:58 2004 +0000
@@ -139,11 +139,7 @@
       else
 	error ("strcmp: nonconformant cell arrays");
       endif
-    else
-      error ("strcmp: expecting args to be strings or cell arrays of strings");
     endif
-  else
-    error ("strcmp: expecting args to be strings or cell arrays of strings");
   endif
 
 endfunction