[Pkg-wmaker-commits] [wmforecast] 36/63: function annotation to remove Coverity false positive
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 17 11:20:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmforecast.
commit 33b57f357cf34234300ffc7174691b09d0249df0
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Sat May 31 00:12:09 2014 -0600
function annotation to remove Coverity false positive
---
ChangeLog | 3 ++-
wmforecast.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 335a735..bfff680 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2014-05-30 Doug Torrance <dtorrance at monmouthcollege.edu>
* wmforecast.c (getWeather): fix missing return statements (Coverity
- 65086)
+ 65086); function annotation to remove Coverity false positive
+ (Coverity 65084)
* wmforecast.c (savePreferences): check return value of mkdir (Coverity
65085)
diff --git a/wmforecast.c b/wmforecast.c
index a609e06..5f53b3a 100755
--- a/wmforecast.c
+++ b/wmforecast.c
@@ -367,6 +367,7 @@ Weather *getWeather(WMScreen *screen, Preferences *prefs)
curl_handle = curl_easy_init();
curl_easy_setopt(curl_handle, CURLOPT_URL, url);
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
+ /* coverity[bad_sizeof] */
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
res = curl_easy_perform(curl_handle);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmforecast.git
More information about the Pkg-wmaker-commits
mailing list