diff options
-rw-r--r-- | src/arch/x86/acpigen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/acpigen.c b/src/arch/x86/acpigen.c index 74efbb0534..226fba153c 100644 --- a/src/arch/x86/acpigen.c +++ b/src/arch/x86/acpigen.c @@ -206,7 +206,7 @@ void acpigen_emit_stream(const char *data, int size) void acpigen_emit_string(const char *string) { - acpigen_emit_stream(string, string ? 0 : strlen(string)); + acpigen_emit_stream(string, string ? strlen(string) : 0); acpigen_emit_byte('\0'); /* NUL */ } |