forget to init result field

This commit is contained in:
LiYang 2016-10-24 22:04:04 +08:00
parent 121cb2d089
commit 278dbe44f8

View File

@ -20,7 +20,7 @@
#include "logger.h"
void init_result(struct result *_result) {
_result->error = SUCCESS;
_result->result = _result->error = SUCCESS;
_result->cpu_time = _result->real_time = _result->signal = _result->exit_code = 0;
_result->memory = 0;
}