mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Increase line coverage in libtor-string to 100%
(On linux.)
This commit is contained in:
@@ -101,7 +101,7 @@ tor_vasprintf(char **strp, const char *fmt, va_list args)
|
||||
/* If the platform gives us one, use it. */
|
||||
int r = vasprintf(&strp_tmp, fmt, args);
|
||||
if (r < 0)
|
||||
*strp = NULL;
|
||||
*strp = NULL; // LCOV_EXCL_LINE -- no cross-platform way to force this
|
||||
else
|
||||
*strp = strp_tmp;
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user