Mercurial > octave
changeset 20748:bb219f1d92db
Fix indexing error in cset 69aeef6736df.
* unpack.m: Get first element of 'file' cellstr before using strfind.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 24 Nov 2015 14:19:30 -0800 |
parents | ee2743bd07a8 |
children | 74cc8ae4e2b0 |
files | scripts/miscellaneous/unpack.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/unpack.m Tue Nov 24 15:03:29 2015 -0500 +++ b/scripts/miscellaneous/unpack.m Tue Nov 24 14:19:30 2015 -0800 @@ -86,7 +86,7 @@ file = cellstr (file); endif if (numel (file) == 1) - if (isempty (strfind (file, "://"))) + if (isempty (strfind (file{1}, "://"))) ## FIXME: The above code is not a perfect test for a URL gfile = glob (file); if (isempty (gfile))