aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hfst/unnulled_getline_usage.patch
blob: bce19501c9e91ba14fdbf6f2f61ba93559a1698b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- hfst-3.8.2/tools/src/hfst-reweight.cc
+++ hfst-3.8.2/tools/src/hfst-reweight_new.cc
@@ -409,7 +409,7 @@
             free(symbol);
             addition = 0;
             multiplier = 1;
-            char* line;
+            char* line = NULL;
             size_t len = 0;
             size_t linen = 0;
             verbose_printf("Reading reweights from %s\n", tsv_file_name);