Browse Source

braces for one line statements in smprintf()

Aaron Marcher 9 years ago
parent
commit
c5ace949e4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      slstatus.c

+ 2 - 1
slstatus.c

@@ -88,8 +88,9 @@ smprintf(const char *fmt, ...)
 	va_end(ap);
 
 	ret = malloc(++len);
-	if (ret == NULL)
+	if (ret == NULL) {
 		err(1, "malloc");
+	}
 
 	va_start(ap, fmt);
 	vsnprintf(ret, len, fmt, ap);