diff options
author | Adam Jackson <ajax@redhat.com> | 2011-01-20 00:06:48 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-02-08 12:40:14 -0500 |
commit | be186586e504197623c69637b8122fb814f59429 (patch) | |
tree | ec63555fa0427b1431f75ebe4f43f555da16655e | |
parent | ea1ffd3e60bdcedbec5a6f28929f8677bf45d450 (diff) |
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>
-rw-r--r-- | hw/xfree86/common/xf86VidMode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86VidMode.c b/hw/xfree86/common/xf86VidMode.c index 1788fa192..4dd454d8b 100644 --- a/hw/xfree86/common/xf86VidMode.c +++ b/hw/xfree86/common/xf86VidMode.c @@ -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: |