Explorar el Código

braces for one line statements in smprintf()

Aaron Marcher hace 9 años
padre
commit
c5ace949e4
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);