From 452a410a3ea02f58930c4b3cc5a04bbb6b3e7070 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 2 Feb 2019 17:47:55 +0100 Subject: STR #2714: remove new shadow lint for MacOS --- src/Fl_File_Chooser2.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_File_Chooser2.cxx') diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index 426dbfd51..80d842bcf 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -798,9 +798,9 @@ Fl_File_Chooser::fileNameCB() } // Make sure we have an absolute path... - int condition = directory_[0] != '\0' && filename[0] != '/'; - if (condition && Fl::system_driver()->colon_is_drive()) condition = !(isalpha(filename[0] & 255) && (!filename[1] || filename[1] == ':')); - if (condition) { + int dirIsRelative = directory_[0] != '\0' && filename[0] != '/'; + if (dirIsRelative && Fl::system_driver()->colon_is_drive()) dirIsRelative = !(isalpha(filename[0] & 255) && (!filename[1] || filename[1] == ':')); + if (dirIsRelative) { fl_filename_absolute(pathname, sizeof(pathname), filename); value(pathname); fileName->mark(fileName->position()); // no selection after expansion -- cgit v1.2.3