coreutils/coreutils-8.8-check-string-format.patch
2012-02-01 14:36:01 +04:00

12 lines
473 B
Diff

--- coreutils-8.8/gnulib-tests/test-xvasprintf.c.str_fmt~ 2010-12-28 23:13:20.757419499 +0100
+++ coreutils-8.8/gnulib-tests/test-xvasprintf.c 2010-12-28 23:16:36.165427114 +0100
@@ -96,8 +96,7 @@ test_xasprintf (void)
{
/* Silence gcc warning about zero-length format string. */
- const char *empty = "";
- result = xasprintf (empty);
+ result = xasprintf ("");
ASSERT (result != NULL);
ASSERT (strcmp (result, "") == 0);
free (result);