Module: kamailio Branch: master Commit: 0780e781c319254307c85bd873c58c6478a28da8 URL: https://github.com/kamailio/kamailio/commit/0780e781c319254307c85bd873c58c64...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-07-03T08:33:13+02:00
lib/srdb1: init timeval structs to silent analyzer
---
Modified: src/lib/srdb1/db_query.c
---
Diff: https://github.com/kamailio/kamailio/commit/0780e781c319254307c85bd873c58c64... Patch: https://github.com/kamailio/kamailio/commit/0780e781c319254307c85bd873c58c64...
---
diff --git a/src/lib/srdb1/db_query.c b/src/lib/srdb1/db_query.c index d2319446a6..4a5cd63e22 100644 --- a/src/lib/srdb1/db_query.c +++ b/src/lib/srdb1/db_query.c @@ -13,8 +13,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ @@ -46,7 +46,7 @@ static inline int db_do_submit_query(const db1_con_t* _h, const str *_query, int (*submit_query)(const db1_con_t*, const str*)) { int ret; - struct timeval tvb, tve; + struct timeval tvb = {0}, tve = {0}; struct timezone tz; unsigned int tdiff;