spa-json-dump: fix compilation

This commit is contained in:
Wim Taymans 2025-06-17 18:08:36 +02:00
parent b67226fa0c
commit 7ce9b0daec

View file

@ -294,7 +294,7 @@ int main(int argc, char *argv[])
if (spa_streq(d.filename, "-"))
return process_stdin(&d);
((fd = open(d.filename, O_CLOEXEC | O_RDONLY)) < 0) {
if ((fd = open(d.filename, O_CLOEXEC | O_RDONLY)) < 0) {
fprintf(stderr, "error opening file '%s': %m\n", d.filename);
goto error;
}