Increase line coverage in libtor-string to 100%

(On linux.)
This commit is contained in:
Nick Mathewson
2018-07-17 16:47:32 -04:00
parent e2b744ce38
commit ee12c11dd4
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -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;