xf86vidmode: warning fix
xf86VidMode.c: In function 'VidModeGetMonitorValue': xf86VidMode.c:637:19: warning: 'ret.i' may be used uninitialized in this function Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
ea1ffd3e60
commit
be186586e5
|
@ -634,7 +634,7 @@ VidModeSetModeValue(pointer mode, int valtyp, int val)
|
|||
vidMonitorValue
|
||||
VidModeGetMonitorValue(pointer monitor, int valtyp, int indx)
|
||||
{
|
||||
vidMonitorValue ret;
|
||||
vidMonitorValue ret = { NULL, };
|
||||
|
||||
switch (valtyp) {
|
||||
case VIDMODE_MON_VENDOR:
|
||||
|
|
Loading…
Reference in New Issue