battery: fix segfault

The name was set NULL which lead to a segfault on POSIX.
This commit is contained in:
Julian Oes
2016-02-25 15:33:34 +00:00
parent 141b984d5b
commit 4ddd1bbf03
+1 -1
View File
@@ -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),