fix file_name_extension with '' as second arg (obs from Crhis Mungall)

This commit is contained in:
Vitor Santos Costa 2010-11-26 23:44:11 +00:00
parent 471cc93f6c
commit 99f1249382

View File

@ -1036,6 +1036,8 @@ file_name_extension(A1,A2,F) :-
atom_codes(A2, S2), atom_codes(A2, S2),
( (
S2 = [0'.|_] %' S2 = [0'.|_] %'
;
A2 = ''
-> ->
atom_concat(A1, A2, F) atom_concat(A1, A2, F)
; ;