summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-15 14:43:39 -0700
committerGitHub <noreply@github.com>2020-03-15 14:43:39 -0700
commit849ac4b24576f321b342114b07b2fd8af4f3f3dd (patch)
tree519de298723f06be22fc1db40e739c007f7cdaac /configure
parentf75248a9d9554b668484b089713e7c2b0a154ad6 (diff)
downloadfio-849ac4b24576f321b342114b07b2fd8af4f3f3dd.tar.gz
fio-849ac4b24576f321b342114b07b2fd8af4f3f3dd.tar.bz2
configure: fix vasprintf check under musl
It errors when passing NULL or 0. Passing an empty va_list works.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 5de86ca2..d17929f1 100755
--- a/configure
+++ b/configure
@@ -892,7 +892,8 @@ cat > $TMPC << EOF
int main(int argc, char **argv)
{
- return vasprintf(NULL, "%s", NULL) == 0;
+ va_list ap;
+ return vasprintf(NULL, "%s", ap) == 0;
}
EOF
if compile_prog "" "" "have_vasprintf"; then