From 4ddd1bbf0354b2520cddf8505535c37584853324 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 25 Feb 2016 15:33:34 +0000 Subject: [PATCH] battery: fix segfault The name was set NULL which lead to a segfault on POSIX. --- src/modules/systemlib/battery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/systemlib/battery.cpp b/src/modules/systemlib/battery.cpp index aa418b183e..0f1a6bbddb 100644 --- a/src/modules/systemlib/battery.cpp +++ b/src/modules/systemlib/battery.cpp @@ -42,7 +42,7 @@ #include "battery.h" Battery::Battery() : - SuperBlock(NULL, NULL), + SuperBlock(NULL, ""), _param_v_empty(this, "BAT_V_EMPTY", false), _param_v_full(this, "BAT_V_CHARGED", false), _param_n_cells(this, "BAT_N_CELLS", false),