Commit 43bed00e authored by Houtan Bastani's avatar Houtan Bastani
Browse files

dynare.m: don’t redo strfind as value exists in dot_location variable

parent 9c86168d
......@@ -108,7 +108,7 @@ if dot_location==length(fname)
end
% Add dyn or mod extension to the file name if not already provided.
if isempty(strfind(fname,'.'))
if isempty(dot_location)
fnamelength = length(fname);
fname1 = [fname '.dyn'];
d = dir(fname1);
......
Supports Markdown
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