Browse code

adding braces to oom check for clamdtop

Mickey Sola authored on 2015/09/23 05:33:08
Showing 1 changed files
... ...
@@ -1117,10 +1117,10 @@ static void parse_stats(conn_t *conn, struct stats *stats, unsigned idx)
1117 1117
 	stats->engine_version[p-pstart] = '\0';
1118 1118
 
1119 1119
 	pstart = strchr(p, '/');
1120
-	if (!pstart)
1120
+	if (!pstart) {
1121 1121
 		stats->db_version = strdup("????");
1122 1122
 		OOM_CHECK(stats->db_version);
1123
-	else {
1123
+	} else {
1124 1124
 		pstart++;
1125 1125
 		p = strchr(pstart, '/');
1126 1126
 		if (!p)