Skip to content

Commit b809db4

Browse files
authored
Initialize y as an empty logical array on error
1 parent 7e519fb commit b809db4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

+stdlib/+python/samepath.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
function y = samepath(path1, path2)
22

3-
y = false;
4-
53
try
64
y = py.os.path.samefile(path1, path2);
75
catch e
86
pythonException(e)
7+
y = logical.empty;
98
end
109

1110
end

0 commit comments

Comments
 (0)