graph: return if size is 0 (FS#466)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ab0220274e
commit
527e6308c3
|
@ -372,6 +372,9 @@ luaA_graph_plot_data_add(lua_State *L)
|
||||||
float value;
|
float value;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if(!d->size)
|
||||||
|
return 0;
|
||||||
|
|
||||||
plot = graph_plot_get(d, title);
|
plot = graph_plot_get(d, title);
|
||||||
|
|
||||||
/* assign incoming value */
|
/* assign incoming value */
|
||||||
|
|
Loading…
Reference in New Issue