From dca9ca443d313ae8b2831e6b4117e391b0a5f1da Mon Sep 17 00:00:00 2001 From: root Date: Sat, 31 Mar 2012 13:34:07 -0700 Subject: [PATCH] I fixed your shit, bitch. :) --- src/rarcrack.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rarcrack.c b/src/rarcrack.c index 5d340fc..32674d2 100644 --- a/src/rarcrack.c +++ b/src/rarcrack.c @@ -338,7 +338,13 @@ void init(int argc, char **argv) { break; } } - printf("INFO: detected file type: %s\n", TYPE[archive_type]); + if (archive_type != -1){ + printf("INFO: detected file type: %s\n", TYPE[archive_type]); + } + else { + printf("ERROR: Couldn't detect archive type\n"); + exit(1); + { } else printf("INFO: the specified archive type: %s\n", TYPE[archive_type]); if (finalcmd[0] == '\0') { -- 2.11.4.GIT