You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2015/05/15 15:23:49 UTC
[13/50] [abbrv] qpid-proton git commit: NO-JIRA: Fix uninitialised
variable issue (in the case that len=0, on function entry)
NO-JIRA: Fix uninitialised variable issue (in the case that len=0, on function entry)
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/fa52f4e7
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/fa52f4e7
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/fa52f4e7
Branch: refs/heads/rajith-codec
Commit: fa52f4e7110fb7336b03d318b4381ea0a526a507
Parents: 223bbc8
Author: Andrew Stitcher <as...@apache.org>
Authored: Fri May 8 13:42:55 2015 -0400
Committer: Andrew Stitcher <as...@apache.org>
Committed: Fri May 8 13:42:55 2015 -0400
----------------------------------------------------------------------
proton-c/src/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/fa52f4e7/proton-c/src/util.c
----------------------------------------------------------------------
diff --git a/proton-c/src/util.c b/proton-c/src/util.c
index 2fe7e95..2b560a6 100644
--- a/proton-c/src/util.c
+++ b/proton-c/src/util.c
@@ -224,7 +224,7 @@ int pn_strcasecmp(const char *a, const char *b)
int pn_strncasecmp(const char* a, const char* b, size_t len)
{
- char diff;
+ char diff = 0;
while (*b && len > 0) {
diff = tolower(*a++)-tolower(*b++);
if ( diff!=0 ) return diff;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org