[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-48
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-487-g9f8f70d |
Date: |
Wed, 24 Apr 2013 14:25:56 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 9f8f70dbb7363ade19098aedd4710ff71d1a92f0 (commit)
from db51abfcbfb359cbca5634b1bc3958865fceab28 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=9f8f70dbb7363ade19098aedd4710ff71d1a92f0
commit 9f8f70dbb7363ade19098aedd4710ff71d1a92f0
Author: Daniele Forsi <address@hidden>
Date: Wed Apr 24 16:24:33 2013 +0200
Check return value
Fixes error found with scan-build:
Value stored to 'ret' is never read
diff --git a/common/phones/pcsc.c b/common/phones/pcsc.c
index bcaafe8..ed0e1f6 100644
--- a/common/phones/pcsc.c
+++ b/common/phones/pcsc.c
@@ -1463,6 +1463,8 @@ static LONG pcsc_open_reader_number(LONG number)
/* first retrieve buffer length */
ret = SCardListReaders(hContext, NULL, NULL, &len);
+ if (ret != SCARD_S_SUCCESS)
+ return ret;
buf = malloc(len);
if (!buf) {
return SCARD_E_NO_MEMORY;
-----------------------------------------------------------------------
Summary of changes:
common/phones/pcsc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-487-g9f8f70d,
Daniele Forsi <=