There is absolutely nothing this parser can do without the network
names. If the pointer happens to be zero, all we can do is to bail out
with a error print. Not handling this situation will lead to a crash.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
int max_str = RRD_DATA_MAX_LEN;
int ret;
+ if (!parser_data) {
+ pr_err("No device names specified\n");
+ return -1;
+ }
+
while(*iface_name) {
pr_info("getting data for iface %s\n", *iface_name);
ret = get_iface_stats(*iface_name, &stat);