summaryrefslogtreecommitdiff
path: root/dos2unix.c
diff options
context:
space:
mode:
authorHyunjee Kim <hj0426.kim@samsung.com>2019-12-04 10:03:47 +0900
committerHyunjee Kim <hj0426.kim@samsung.com>2019-12-04 10:04:04 +0900
commitbbd2e3645d3bd981025347b38c3f51b49d93d565 (patch)
tree47c452969dcf8520050361bc42bebd36927e8ac9 /dos2unix.c
parent3e04d82fa8da3f9c3077d4d06b334cdc2c947a61 (diff)
downloaddos2unix-bbd2e3645d3bd981025347b38c3f51b49d93d565.tar.gz
dos2unix-bbd2e3645d3bd981025347b38c3f51b49d93d565.tar.bz2
dos2unix-bbd2e3645d3bd981025347b38c3f51b49d93d565.zip
Imported Upstream version 7.4.1upstream/7.4.1
Change-Id: Icfc7d64efcf2404d3683c06fd42c4487aae79c2e Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
Diffstat (limited to 'dos2unix.c')
-rw-r--r--dos2unix.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/dos2unix.c b/dos2unix.c
index 65d3850..78410a6 100644
--- a/dos2unix.c
+++ b/dos2unix.c
@@ -7,7 +7,7 @@
* See also http://www.freebsd.org/copyright/freebsd-license.html
* --------
*
- * Copyright (C) 2009-2016 Erwin Waterlander
+ * Copyright (C) 2009-2018 Erwin Waterlander
* Copyright (C) 1998 Christian Wurll
* Copyright (C) 1998 Bernd Johannes Wuebben
* Copyright (C) 1994-1995 Benjamin Lin.
@@ -504,6 +504,7 @@ int main (int argc, char *argv[])
CFlag *pFlag;
char *ptr;
char localedir[1024];
+ int ret;
# ifdef __MINGW64__
int _dowildcard = -1; /* enable wildcard expansion for Win64 */
# endif
@@ -593,9 +594,11 @@ int main (int argc, char *argv[])
#endif
#ifdef D2U_UNICODE
- return parse_options(argc_new, argv_new, pFlag, localedir, progname, PrintLicense, ConvertDosToUnix, ConvertDosToUnixW);
+ ret = parse_options(argc_new, argv_new, pFlag, localedir, progname, PrintLicense, ConvertDosToUnix, ConvertDosToUnixW);
#else
- return parse_options(argc_new, argv_new, pFlag, localedir, progname, PrintLicense, ConvertDosToUnix);
+ ret = parse_options(argc_new, argv_new, pFlag, localedir, progname, PrintLicense, ConvertDosToUnix);
#endif
+ free(pFlag);
+ return ret;
}