You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2016/04/05 18:24:55 UTC
qpid-dispatch git commit: DISPATCH-258: initialize variable before use
Repository: qpid-dispatch
Updated Branches:
refs/heads/master cdca96666 -> 4df749549
DISPATCH-258: initialize variable before use
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/4df74954
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/4df74954
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/4df74954
Branch: refs/heads/master
Commit: 4df749549bbebc9761ca5c718d3b9e7eed8daed5
Parents: cdca966
Author: Chuck Rolke <cr...@redhat.com>
Authored: Tue Apr 5 12:24:46 2016 -0400
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Tue Apr 5 12:24:46 2016 -0400
----------------------------------------------------------------------
src/policy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/4df74954/src/policy.c
----------------------------------------------------------------------
diff --git a/src/policy.c b/src/policy.c
index dbd3015..df6ddd4 100644
--- a/src/policy.c
+++ b/src/policy.c
@@ -557,8 +557,8 @@ bool _qd_policy_approve_link_name(const char *username, const char *allowed, con
// Do reverse user substitution into proposed
char substbuf[QPALN_USERBUFSIZE];
char * prop2 = _qd_policy_link_user_name_subst(username, proposed, substbuf, QPALN_USERBUFSIZE);
- char *tok, *toknext;
- tok = strtok_r(pa, QPALN_COMMA_SEP, &toknext);
+ char *toknext = 0;
+ char *tok = strtok_r(pa, QPALN_COMMA_SEP, &toknext);
assert (tok);
bool result = false;
while (tok != NULL) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org