graph: return if size is 0 (FS#466)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-03-02 17:42:55 +01:00
parent ab0220274e
commit 527e6308c3
1 changed files with 3 additions and 0 deletions

View File

@ -372,6 +372,9 @@ luaA_graph_plot_data_add(lua_State *L)
float value;
int i;
if(!d->size)
return 0;
plot = graph_plot_get(d, title);
/* assign incoming value */