[sr-dev] [kamailio/kamailio] sipcapture: initialize variable (#1664)

Mikko Lehto notifications at github.com
Tue Oct 2 15:33:46 CEST 2018


#### Pre-Submission Checklist

- [✓] Commit message has the format required by CONTRIBUTING guide
- [✓] Commits are split per component (core, individual modules, libs, utils, ...)
- [✓] Each component has a single commit (if not, squash them into one commit)
- [✓] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)

#### Type Of Change

- [✓] Small bug fix (non-breaking change which fixes an issue)

#### Checklist:

- [✓] PR should be backported to stable branches
- [✓] Tested changes locally


#### Description

After enabling clang -Wall on, this warning showed up:

> sipcapture.c:2580:5: warning: variable 'corrtmp' is used uninitialized whenever 'if' condition is false
>       [-Wsometimes-uninitialized]
>         if(correlation_id) {
>            ^~~~~~~~~~~~~~

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1664

-- Commit Summary --

  * sipcapture: initialize variable

-- File Changes --

    M src/modules/sipcapture/sipcapture.c (3)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1664.patch
https://github.com/kamailio/kamailio/pull/1664.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1664
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181002/b73e541d/attachment-0001.html>


More information about the sr-dev mailing list