[systemd-devel] [PATCH 2/5] libsystemd:terminal :fix uninitialized warning
philippedeswert at gmail.com
philippedeswert at gmail.com
Thu Oct 16 14:43:50 PDT 2014
From: Philippe De Swert <philippedeswert at gmail.com>
Remove the following warning during the compilation:
src/libsystemd-terminal/grdev-drm.c: In function 'grdrm_card_hotplug':
src/libsystemd-terminal/grdev-drm.c:1087:45: warning: 'fb' may be used uninitialized in this function [-Wmaybe-uninitialized]
src/libsystemd-terminal/grdev-drm.c:1035:19: note: 'fb' was declared here
---
src/libsystemd-terminal/grdev-drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libsystemd-terminal/grdev-drm.c b/src/libsystemd-terminal/grdev-drm.c
index dba6db2..415755e 100644
--- a/src/libsystemd-terminal/grdev-drm.c
+++ b/src/libsystemd-terminal/grdev-drm.c
@@ -1032,7 +1032,7 @@ error:
static void grdrm_crtc_expose(grdrm_crtc *crtc) {
grdrm_pipe *pipe;
- grdrm_fb *fb;
+ grdrm_fb *fb = NULL;
size_t i;
int r;
--
1.8.3.2
More information about the systemd-devel
mailing list