diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-09-17 14:32:05 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-09-17 14:32:05 +0000 |
commit | 0023bacc0565ad444e8facefd1db9b622a8e07d4 (patch) | |
tree | 7ea369f429480af3b4e929839b5b487aa04064de /src/regex/test_regex_graph_api.c | |
parent | 290598582085e0b442caac7a94dcc6e940118e84 (diff) | |
download | gnunet-0023bacc0565ad444e8facefd1db9b622a8e07d4.tar.gz gnunet-0023bacc0565ad444e8facefd1db9b622a8e07d4.zip |
coverity
Diffstat (limited to 'src/regex/test_regex_graph_api.c')
-rw-r--r-- | src/regex/test_regex_graph_api.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/regex/test_regex_graph_api.c b/src/regex/test_regex_graph_api.c index 9e8e1fb16..b20a6d07f 100644 --- a/src/regex/test_regex_graph_api.c +++ b/src/regex/test_regex_graph_api.c | |||
@@ -48,7 +48,7 @@ filecheck (const char *filename) | |||
48 | if (NULL == fp) | 48 | if (NULL == fp) |
49 | { | 49 | { |
50 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not find graph %s\n", filename); | 50 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not find graph %s\n", filename); |
51 | error++; | 51 | return ++error; |
52 | } | 52 | } |
53 | 53 | ||
54 | fseek (fp, 0L, SEEK_END); | 54 | fseek (fp, 0L, SEEK_END); |
@@ -62,7 +62,14 @@ filecheck (const char *filename) | |||
62 | error += fclose (fp); | 62 | error += fclose (fp); |
63 | 63 | ||
64 | if (!KEEP_FILES) | 64 | if (!KEEP_FILES) |
65 | unlink (filename); | 65 | { |
66 | if (0 != unlink (filename)) | ||
67 | { | ||
68 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not remove temp files (%s)\n", | ||
69 | filename); | ||
70 | } | ||
71 | } | ||
72 | |||
66 | 73 | ||
67 | return error; | 74 | return error; |
68 | } | 75 | } |