summaryrefslogtreecommitdiff
path: root/lib/csv.c
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2017-12-05 00:26:41 -0800
committerMartin Winter <mwinter@opensourcerouting.org>2017-12-05 00:30:29 -0800
commit79e68c7c5b3fc5c64781ee619ed94cc47bbb89c3 (patch)
tree026ca6b2bf85dba89e4060a405fb3a9afa07d873 /lib/csv.c
parent176b30508018c831639220c201ecef946d328035 (diff)
lib: Fix gcc 7 warning 'error: ‘fld’ may be used uninitialized in this function'
Warning breaks Debian Package build with gcc 7 which uses -Werror=maybe-uninitialized Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
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 27d0fe4029..e6a5eae2e2 100644
--- a/lib/csv.c
+++ b/lib/csv.c
@@ -424,7 +424,7 @@ void csv_clone_record(csv_t *csv, csv_record_t *in_rec, csv_record_t **out_rec)
void csv_remove_record(csv_t *csv, csv_record_t *rec)
{
- csv_field_t *fld, *p_fld;
+ csv_field_t *fld = NULL, *p_fld;
/* first check if rec belongs to this csv */
if (!csv_is_record_valid(csv, rec)) {