commit e4d437f440648de0f98c1ba2900330bf192b2443
parent 5901d5a1ab47a9f11466a6a0b3984fed9d133d80
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 22 Oct 2013 13:51:14 -0700
drm: Fix use of uninitialized variable on error
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libswc/drm.c b/libswc/drm.c
@@ -282,7 +282,6 @@ bool swc_drm_initialize(struct swc_drm * drm, struct udev * udev,
const char * seat)
{
const char * sysnum;
- const char * device_path;
char * end;
wl_signal_init(&drm->event_signal);
@@ -316,7 +315,7 @@ bool swc_drm_initialize(struct swc_drm * drm, struct udev * udev,
if (drm->fd == -1)
{
- printf("couldn't open %s\n", device_path);
+ fprintf(stderr, "Could not open %s\n", drm->path);
goto error1;
}