Allow setting just the error code

This commit is contained in:
Pierre Pronchery 2015-11-22 18:34:06 +01:00
parent 52bdf011b4
commit 8a64366c01

View File

@ -88,6 +88,8 @@ int error_set_code(int code, String const * format, ...)
va_list args; va_list args;
va_start(args, format); va_start(args, format);
if(format == NULL)
format = "";
_error_do(&code, format, args); _error_do(&code, format, args);
va_end(args); va_end(args);
return code; return code;