Module: kamailio Branch: master Commit: d27bf087dfca0146a6589148b5701818ef635b02 URL: https://github.com/kamailio/kamailio/commit/d27bf087dfca0146a6589148b5701818ef635b02
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2023-11-13T10:39:29+01:00 core: cast to deal with analyzer warning --- Modified: src/core/utils/snexpr.h --- Diff: https://github.com/kamailio/kamailio/commit/d27bf087dfca0146a6589148b5701818ef635b02.diff Patch: https://github.com/kamailio/kamailio/commit/d27bf087dfca0146a6589148b5701818ef635b02.patch --- diff --git a/src/core/utils/snexpr.h b/src/core/utils/snexpr.h index 559aa7915c9..cdfe55c45d8 100644 --- a/src/core/utils/snexpr.h +++ b/src/core/utils/snexpr.h @@ -62,7 +62,7 @@ extern "C" if(*length + 1 > *cap) { void *ptr; int n = (*cap == 0) ? 1 : *cap << 1; - ptr = realloc(*buf, n * memsz); + ptr = realloc(*buf, (size_t)n * memsz); if(ptr == NULL) { return -1; /* allocation failed */ } _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-le...@lists.kamailio.org