diff options
author | Hyunjee Kim <hj0426.kim@samsung.com> | 2019-12-04 10:03:47 +0900 |
---|---|---|
committer | Hyunjee Kim <hj0426.kim@samsung.com> | 2019-12-04 10:04:04 +0900 |
commit | bbd2e3645d3bd981025347b38c3f51b49d93d565 (patch) | |
tree | 47c452969dcf8520050361bc42bebd36927e8ac9 /dos2unix.c | |
parent | 3e04d82fa8da3f9c3077d4d06b334cdc2c947a61 (diff) | |
download | dos2unix-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.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; } |