Browse Source

[mod_webdav] quiet coverity false positive

personal/stbuehler/fix-fdevent
Glenn Strauss 4 years ago
parent
commit
1b8453886f
  1. 3
      src/mod_webdav.c

3
src/mod_webdav.c

@ -2063,6 +2063,9 @@ SUBREQUEST_FUNC(mod_webdav_subrequest_handler_huge) {
/* don't add a second / */
if (p->physical.rel_path->ptr[0] == '/') {
#ifdef __COVERITY__
if (buffer_string_length(p->physical.rel_path) < 1) return HANDLER_ERROR;
#endif
buffer_append_string_len(p->physical.path, p->physical.rel_path->ptr + 1, buffer_string_length(p->physical.rel_path) - 1);
} else {
buffer_append_string_buffer(p->physical.path, p->physical.rel_path);

Loading…
Cancel
Save