diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-05-31 15:32:09 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 16:30:31 +0200 |
commit | c5cd0e491238397bd9cafff2707773146305a528 (patch) | |
tree | f6f77edb59073932167f1e862b96143daaa63aa8 /plugins/uriparser/UriFile.c | |
parent | 7dd0a31b285121ae2b4af019e7b337e5eb0427af (diff) | |
download | monitoring-plugins-c5cd0e491238397bd9cafff2707773146305a528.tar.gz |
updated bundled version of uriparser to 0.8.5
Diffstat (limited to 'plugins/uriparser/UriFile.c')
-rw-r--r-- | plugins/uriparser/UriFile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/uriparser/UriFile.c b/plugins/uriparser/UriFile.c index 9cf788fc..332f6a9f 100644 --- a/plugins/uriparser/UriFile.c +++ b/plugins/uriparser/UriFile.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * uriparser - RFC 3986 URI parsing library | 2 | * uriparser - RFC 3986 URI parsing library |
3 | * | 3 | * |
4 | * Copyright (C) 2007, Weijia Song <songweijia@gmail.com> | 4 | * Copyright (C) 2007, Weijia Song <songweijia@gmail.com> |
5 | * Copyright (C) 2007, Sebastian Pipping <webmaster@hartwork.org> | 5 | * Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org> |
6 | * All rights reserved. | 6 | * All rights reserved. |
7 | * | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
@@ -83,7 +83,7 @@ static URI_INLINE int URI_FUNC(FilenameToUriString)(const URI_CHAR * filename, | |||
83 | is_windows_network = (filename[0] == _UT('\\')) && (filename[1] == _UT('\\')); | 83 | is_windows_network = (filename[0] == _UT('\\')) && (filename[1] == _UT('\\')); |
84 | absolute = fromUnix | 84 | absolute = fromUnix |
85 | ? (filename[0] == _UT('/')) | 85 | ? (filename[0] == _UT('/')) |
86 | : ((filename[0] != _UT('\0')) && (filename[1] == _UT(':')) | 86 | : (((filename[0] != _UT('\0')) && (filename[1] == _UT(':'))) |
87 | || is_windows_network); | 87 | || is_windows_network); |
88 | 88 | ||
89 | if (absolute) { | 89 | if (absolute) { |