Repository: qpid-proton
Updated Branches:
  refs/heads/cjansen-cpp-client ef29b07c3 -> 8074793b8 (forced update)


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/cjansen-cpp-client
Commit: fa52f4e7110fb7336b03d318b4381ea0a526a507
Parents: 223bbc8
Author: Andrew Stitcher <[email protected]>
Authored: Fri May 8 13:42:55 2015 -0400
Committer: Andrew Stitcher <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to