Repository: qpid-dispatch Updated Branches: refs/heads/master 86b4c08a4 -> a78e15815
DISPATCH-1178: fix compilation warning (âmodeâ may be used uninitialized) Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/a78e1581 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/a78e1581 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/a78e1581 Branch: refs/heads/master Commit: a78e15815cf0178166d081df7f432089eb4d4b29 Parents: 86b4c08 Author: Gordon Sim <g...@redhat.com> Authored: Mon Nov 12 09:24:13 2018 +0000 Committer: Gordon Sim <g...@redhat.com> Committed: Mon Nov 12 09:36:08 2018 +0000 ---------------------------------------------------------------------- src/dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/a78e1581/src/dispatch.c ---------------------------------------------------------------------- diff --git a/src/dispatch.c b/src/dispatch.c index a6bd256..1c65057 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -187,7 +187,7 @@ qd_error_t qd_dispatch_configure_router(qd_dispatch_t *qd, qd_entity_t *entity) qd_dispatch_set_router_id(qd, qd_entity_opt_string(entity, "id", 0)); QD_ERROR_RET(); qd->router_mode = qd_entity_get_long(entity, "mode"); QD_ERROR_RET(); if (!qd->router_id) { - char *mode; + char *mode = 0; switch (qd->router_mode) { case QD_ROUTER_MODE_STANDALONE: mode = "Standalone_"; break; case QD_ROUTER_MODE_INTERIOR: mode = "Interior_"; break; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org