Fix: set ptr to NULL to suppress old gcc warnings
authorDavid Goulet <dgoulet@efficios.com>
Mon, 22 Apr 2013 19:04:37 +0000 (15:04 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 22 Apr 2013 19:04:37 +0000 (15:04 -0400)
commitd4298c99f2fc4864cdabb3a90fed4d1117308a51
tree93c7dd6c5f9f7d6da9c3cf3d6d20c139ecdcc1b2
parent4e8fa55be8937805621fad9ff289e5affc2ef71b
Fix: set ptr to NULL to suppress old gcc warnings

This has been seen with gcc 4.4.5 on a 32 bit machine.

consumer.c: In function ‘consumer_add_relayd_socket’:
consumer.c:3002: warning: ‘relayd’ may be used uninitialized in this
function

However, the relayd pointer can not be used uninitialized so this patch
suppresses the warning.

Reported-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c
This page took 0.025094 seconds and 4 git commands to generate.