diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-15 14:43:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-15 14:43:39 -0700 |
commit | 849ac4b24576f321b342114b07b2fd8af4f3f3dd (patch) | |
tree | 519de298723f06be22fc1db40e739c007f7cdaac /configure | |
parent | f75248a9d9554b668484b089713e7c2b0a154ad6 (diff) | |
download | fio-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-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |