mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-08 20:12:01 +03:00
change logic to check for false instead of not true to fix coverity 1250328
This commit is contained in:
parent
c637cd04b1
commit
d85b74fd72
@ -46,7 +46,7 @@ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PREFIX}/lib
|
|||||||
export PATH=${PATH}:${PREFIX}/bin
|
export PATH=${PATH}:${PREFIX}/bin
|
||||||
|
|
||||||
# Coverity tools location
|
# Coverity tools location
|
||||||
COVERITY_PREFIX=${COVERITY_PREFIX:-/opt/coverity/cov-analysis-linux64-6.6.1}
|
COVERITY_PREFIX=${COVERITY_PREFIX:-/opt/coverity/cov-analysis-linux64-7.0.2}
|
||||||
COVERITY_VERSION=$(git rev-parse HEAD)
|
COVERITY_VERSION=$(git rev-parse HEAD)
|
||||||
|
|
||||||
export PATH=${PATH}:${COVERITY_PREFIX}/bin
|
export PATH=${PATH}:${COVERITY_PREFIX}/bin
|
||||||
|
@ -2222,10 +2222,10 @@ nserror nsurl_nice(const nsurl *url, char **result, bool remove_extensions)
|
|||||||
|
|
||||||
/* extract the last component of the path, if possible */
|
/* extract the last component of the path, if possible */
|
||||||
if ((url->components.path != NULL) &&
|
if ((url->components.path != NULL) &&
|
||||||
lwc_string_length(url->components.path) != 0 &&
|
(lwc_string_length(url->components.path) != 0) &&
|
||||||
lwc_string_isequal(url->components.path,
|
(lwc_string_isequal(url->components.path,
|
||||||
corestring_lwc_slash_, &match) == lwc_error_ok &&
|
corestring_lwc_slash_, &match) == lwc_error_ok) &&
|
||||||
match != true) {
|
(match == false) {
|
||||||
bool first = true;
|
bool first = true;
|
||||||
bool keep_looking;
|
bool keep_looking;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user