summaryrefslogtreecommitdiffstats
path: root/lib/csv.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-05-20 14:48:21 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-20 15:34:42 +0200
commit284cf39351d74f996d1576ae1dbf28186c6cf621 (patch)
tree96736862ccab115b96bf0c590752094ffa30729d /lib/csv.c
parentvtysh: fix vtysh warnings from another compiler (diff)
downloadfrr-284cf39351d74f996d1576ae1dbf28186c6cf621.tar.xz
frr-284cf39351d74f996d1576ae1dbf28186c6cf621.zip
lib: Compiler warning fix
There exists a code path where fld would be used uninitialized. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/csv.c')
-rw-r--r--lib/csv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv.c b/lib/csv.c
index bcee7bddf..b90a8a9b9 100644
--- a/lib/csv.c
+++ b/lib/csv.c
@@ -267,7 +267,7 @@ csv_encode_record (csv_t *csv,
va_list list;
char *str;
char *col;
- csv_field_t *fld;
+ csv_field_t *fld = NULL;
int i;
va_start(list, count);