]> git.ozlabs.org Git - ccan/blobdiff - tools/configurator/configurator.c
Fix HAVE_ASPRINTF detection
[ccan] / tools / configurator / configurator.c
index ecf8f9f5f1de805c9e6327fa4bacaa0185861d3d..2e5b09c2b984c252c8a2bfd9a397960af057c344 100644 (file)
@@ -102,7 +102,8 @@ static struct test tests[] = {
          "#include <stdio.h>\n"
          "static char *func(int x) {"
          "     char *p;\n"
-         "     if (asprintf(&p, \"%u\", x) == -1) p = NULL;"
+         "     if (asprintf(&p, \"%u\", x) == -1) \n"
+         "             p = NULL;\n"
          "     return p;\n"
          "}" },
        { "HAVE_ATTRIBUTE_COLD", DEFINES_FUNC, NULL, NULL,