X-Git-Url: http://nitlanguage.org diff --git a/lib/standard/time.nit b/lib/standard/time.nit index 99a9f35..fe2d4c5 100644 --- a/lib/standard/time.nit +++ b/lib/standard/time.nit @@ -129,12 +129,11 @@ extern class Tm `{struct tm *`} # TODO document allowed format. fun strftime(format: String): String import String.to_cstring, NativeString.to_s `{ char* buf, *c_format; - size_t res; buf = (char*)malloc(100); c_format = String_to_cstring(format); - res = strftime(buf, 100, c_format, self); + strftime(buf, 100, c_format, self); String s = NativeString_to_s_with_copy(buf); free(buf); return s;