Fix: poll max size should be checked during resize
authorDavid Goulet <dgoulet@efficios.com>
Tue, 22 Jan 2013 20:28:36 +0000 (15:28 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 22 Jan 2013 20:35:54 +0000 (15:35 -0500)
commitca0d78492eb30f538afab0406249bbc7c2492c80
treebc1dc68d797b896bf107d7ccb2f5650010ce69b2
parent0af70327f35ffde444f22d18729782d8cc4cfbbb
Fix: poll max size should be checked during resize

This was detected using cppcheck:

[src/common/compat/compat-poll.c:204]: (error) Uninitialized variable:
new_size

So, the check was always made over an uninitialized variable on the
stack. Fortunately, worst case scenario, new_size is set to the maximum
allowed or kept untouched.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/compat/compat-poll.c
This page took 0.025124 seconds and 4 git commands to generate.