소스 검색

Replace segfault with actual error message

Martijn Braam 1 년 전
부모
커밋
b615d23de1
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/process_pipeline.c

+ 5 - 0
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';