aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_graph.c
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2012-09-07 16:38:49 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2012-09-07 16:38:49 +0000
commit88638fd30b3c7898e1209b8128adf42b1e4bd315 (patch)
tree47433205bf0092f5144e4c0b1b2ac3807654582e /src/regex/regex_graph.c
parent9f81c1a85bb5485bdd2b4dd5a95fc02d2f6deeb4 (diff)
downloadgnunet-88638fd30b3c7898e1209b8128adf42b1e4bd315.tar.gz
gnunet-88638fd30b3c7898e1209b8128adf42b1e4bd315.zip
coverage
Diffstat (limited to 'src/regex/regex_graph.c')
-rw-r--r--src/regex/regex_graph.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/regex/regex_graph.c b/src/regex/regex_graph.c
index 5db3780d0..483cef698 100644
--- a/src/regex/regex_graph.c
+++ b/src/regex/regex_graph.c
@@ -197,11 +197,8 @@ GNUNET_REGEX_automaton_save_graph_step (void *cls, unsigned int count,
197 GNUNET_asprintf (&s_acc, "\"%s\" [shape=circle];\n", name, s->scc_id); 197 GNUNET_asprintf (&s_acc, "\"%s\" [shape=circle];\n", name, s->scc_id);
198 } 198 }
199 199
200 if (NULL == s_acc) 200 GNUNET_assert (NULL != s_acc);
201 { 201
202 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not print state %s\n", s->name);
203 return;
204 }
205 fwrite (s_acc, strlen (s_acc), 1, ctx->filep); 202 fwrite (s_acc, strlen (s_acc), 1, ctx->filep);
206 GNUNET_free (s_acc); 203 GNUNET_free (s_acc);
207 s_acc = NULL; 204 s_acc = NULL;
@@ -256,12 +253,7 @@ GNUNET_REGEX_automaton_save_graph_step (void *cls, unsigned int count,
256 253
257 GNUNET_free (to_name); 254 GNUNET_free (to_name);
258 255
259 if (NULL == s_tran) 256 GNUNET_assert (NULL != s_tran);
260 {
261 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not print state %s\n",
262 s->name);
263 return;
264 }
265 257
266 fwrite (s_tran, strlen (s_tran), 1, ctx->filep); 258 fwrite (s_tran, strlen (s_tran), 1, ctx->filep);
267 GNUNET_free (s_tran); 259 GNUNET_free (s_tran);