From 990150aaba25ba6a3ad2d6bcc1bf07a96842d362 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 2 Mar 2017 17:27:24 +0100 Subject: [PATCH] Fixed sourcery bug when wrong argument count given --- src/sourcery.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sourcery.cpp b/src/sourcery.cpp index ca6d966e..b314fefd 100644 --- a/src/sourcery.cpp +++ b/src/sourcery.cpp @@ -7,6 +7,7 @@ int main(int argc, char* argv[]){ if (argc < 4) { std::cerr << "Usage: " << argv[0] << " " << std::endl; + return 1; } std::ofstream tmp(argv[3]); //begin the first line