remove useless memset and \n

fgets reads up to one byte less than size then with \0 at the end
adding \n after \0 is useless too

Change-Id: I7758d7a8f885bdde2b491a9cb75800f831d77c1f
This commit is contained in:
Xuefer
2015-05-29 17:56:19 +02:00
committed by Dees Troy
parent 8335324d2a
commit 46bdc96815
2 changed files with 0 additions and 4 deletions
-1
View File
@@ -1366,7 +1366,6 @@ int GUIAction::terminalcommand(std::string arg)
keep_going = 0;
} else {
// Try to read output
memset(line, 0, sizeof(line));
if(fgets(line, sizeof(line), fp) != NULL)
gui_print("%s", line); // Display output
else