diff options
-rw-r--r-- | src/backlight.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backlight.c b/src/backlight.c index 5011cb86..70c65591 100644 --- a/src/backlight.c +++ b/src/backlight.c @@ -108,6 +108,9 @@ int backlight_open(struct backlight *b, char *iface) { struct wsdisplay_param param; + if (iface != NULL) + return -1; + memset(¶m, 0, sizeof(param)); param.param = WSDISPLAYIO_PARAM_BRIGHTNESS; |