From e13e6ffc5468066ac780bfb098540ceffb8cf201 Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Thu, 1 Mar 2012 13:16:48 +0100 Subject: [PATCH] Fix null deref when ACPI method call failed (GH-12) --- bbswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbswitch.c b/bbswitch.c index f0cd673..f1eb431 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -74,7 +74,7 @@ int dis_before_suspend_disabled; static char *buffer_to_string(const char *buffer, size_t n, char *target) { int i; for (i=0; i