e1_input_vty: Help coverity in understanding this code
In theory argc could be negative and this code would crash with
a null pointer dereference on the line pointer. Check for <= to
avoid this warning.
Fixes: Coverity CID 1040699
diff --git a/src/e1_input_vty.c b/src/e1_input_vty.c
index efe2bca..b6e1438 100644
--- a/src/e1_input_vty.c
+++ b/src/e1_input_vty.c
@@ -221,7 +221,7 @@
struct e1inp_ts *ts;
int ts_nr;
- if (argc == 0) {
+ if (argc <= 0) {
llist_for_each_entry(line, &e1inp_line_list, list) {
for (ts_nr = 0; ts_nr < line->num_ts; ts_nr++) {
ts = &line->ts[ts_nr];