From b615d23de1d519024c1d1b72efa54db056b7183d Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Wed, 7 Feb 2024 13:50:29 +0100 Subject: [PATCH] Replace segfault with actual error message --- src/process_pipeline.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/process_pipeline.c b/src/process_pipeline.c index 56d0520..4f8ecd8 100644 --- a/src/process_pipeline.c +++ b/src/process_pipeline.c @@ -835,6 +835,11 @@ process_capture_burst(GdkTexture *thumb) bool save_dng = g_settings_get_boolean(settings, "save-raw"); char *postprocessor = g_settings_get_string(settings, "postprocessor"); + if (postprocessor == NULL) { + g_printerr("Postprocessor setting is null\n"); + return; + } + char save_dng_s[2] = "0"; if (save_dng) { save_dng_s[0] = '1';