[gmime: 10/12] Make sure to always close fin
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime: 10/12] Make sure to always close fin
- Date: Fri, 7 Apr 2017 00:41:43 +0000 (UTC)
commit a202d29692c72fe7f2dfc3009771e15169ec6cd3
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Thu Apr 6 17:19:07 2017 -0400
Make sure to always close fin
examples/uudecode.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/uudecode.c b/examples/uudecode.c
index 41b4a2a..bfc1cb6 100644
--- a/examples/uudecode.c
+++ b/examples/uudecode.c
@@ -159,7 +159,6 @@ uudecode (const char *progname, int argc, char **argv)
if (p == NULL) {
fprintf (stderr, "%s: %s: No `begin' line\n", progname,
(!strcmp (infile, DEFAULT_FILENAME)) ? "stdin" : infile);
- fclose (fin);
goto nexti;
}
@@ -234,9 +233,10 @@ uudecode (const char *progname, int argc, char **argv)
fflush (fout);
fclose (fout);
- fclose (fin);
nexti:
+ fclose (fin);
+
if (str) {
g_string_free (str, TRUE);
str = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]