Mercurial > octave
diff libinterp/corefcn/sysdep.cc @ 26995:ab5bfee22d18
maint: Strip trailing whitespace from source files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 27 Mar 2019 23:32:07 +0000 |
parents | d8712d26d086 |
children | 762bfd9fad94 |
line wrap: on
line diff
--- a/libinterp/corefcn/sysdep.cc Wed Mar 27 23:26:27 2019 +0000 +++ b/libinterp/corefcn/sysdep.cc Wed Mar 27 23:32:07 2019 +0000 @@ -321,13 +321,13 @@ } // Return TRUE if NAME refers to an existing drive letter or UNC share - + bool drive_or_unc_share (const std::string& name) { #if defined (OCTAVE_USE_WINDOWS_API) size_t len = name.length (); bool candidate = false; - if (len > 1 && isalpha(name[0]) && name[1]==':' + if (len > 1 && isalpha(name[0]) && name[1]==':' && (len == 2 || (len == 3 && name[2] == '\\'))) candidate = true; if (len > 4 && name[0] == '\\' && name[1] == '\\') @@ -370,7 +370,7 @@ #endif } - + void sysdep_init (void) { // Use a function from libgomp to force loading of OpenMP library.