mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
csync_exclude: Fix compile
csync_exclude.cpp:428:17: error: assigning to 'char *' from incompatible type 'const char *' bname = path; ^~~~ The C library's strrchr always return 'char*' Only the C++'s std::strrchr has two overloads
This commit is contained in:
parent
287670c9d6
commit
e25af4f0dc
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ CSYNC_EXCLUDE_TYPE ExcludedFiles::traversalPatternMatch(const char *path, int fi
|
||||||
// Check the bname part of the path to see whether the full
|
// Check the bname part of the path to see whether the full
|
||||||
// regex should be run.
|
// regex should be run.
|
||||||
|
|
||||||
auto bname = strrchr(path, '/');
|
const char *bname = strrchr(path, '/');
|
||||||
if (bname) {
|
if (bname) {
|
||||||
bname += 1; // don't include the /
|
bname += 1; // don't include the /
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue