diff --git a/src/conversion.cpp b/src/conversion.cpp index 37e9242..6858dc0 100644 --- a/src/conversion.cpp +++ b/src/conversion.cpp @@ -48,8 +48,7 @@ void convert(const std::string& path) { // try to convert to ppm using ImageMagi write_image(std::cout, stdin); - int exit_status; - throw_if_min1(wait(&exit_status)); + throw_if_min1(wait(nullptr)); break; } }