1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[error] suppress warning

This commit is contained in:
Witold Filipczyk 2022-06-25 16:19:56 +02:00
parent 797f1e8a8f
commit 534344ce35

View File

@ -150,7 +150,7 @@ elinks_assertm(int x, const char *fmt, ...)
if (!(assert_failed = !x)) return;
va_start(params, fmt);
vasprintf((char **) &buf, fmt, params);
(void)!vasprintf((char **) &buf, fmt, params);
va_end(params);
elinks_internal("assertion failed: %s", buf);
if (buf) free(buf);