commit 9c9ba68e6c4d23dadf33cadb3ed94eebcba4c963
parent ed44001f8a9a56af7c22473e96fa87d6cce8cb1f
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Wed, 9 Dec 2015 22:24:34 +0100
Returning an empty string instead of "none" if input file has no extension
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -251,7 +251,7 @@ int main(int argc, char *argv[])
// get file extension
char *fext = strrchr(input, '.');
- fext = fext ? strtolower(fext) : "none";
+ fext = fext ? strtolower(fext) : "";
// create the output file by invoking the appropiate function
if (!strcmp(fext, ".pcb")) {