commit e4d437f
Michael Forney
·
2013-10-22 20:51:14 +0000 UTC
parent 5901d5a
drm: Fix use of uninitialized variable on error
1 files changed,
+1,
-2
+1,
-2
1@@ -282,7 +282,6 @@ bool swc_drm_initialize(struct swc_drm * drm, struct udev * udev,
2 const char * seat)
3 {
4 const char * sysnum;
5- const char * device_path;
6 char * end;
7
8 wl_signal_init(&drm->event_signal);
9@@ -316,7 +315,7 @@ bool swc_drm_initialize(struct swc_drm * drm, struct udev * udev,
10
11 if (drm->fd == -1)
12 {
13- printf("couldn't open %s\n", device_path);
14+ fprintf(stderr, "Could not open %s\n", drm->path);
15 goto error1;
16 }
17