From 2927f8f9ef173bd10d086845c1202d2f1b9dcc1f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 1 Jul 2021 18:37:03 +0200 Subject: Fixture display: Clean up error path if REPL can't connect --- src/starlet-fixture-display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/starlet-fixture-display.c b/src/starlet-fixture-display.c index cba3497..35e40bc 100644 --- a/src/starlet-fixture-display.c +++ b/src/starlet-fixture-display.c @@ -540,6 +540,8 @@ int main(int argc, char *argv[]) g_timeout_add(50, redraw_cb, &fixd); fixd.repl = repl_connection_new(socket, process_line, &fixd, verbose); + if ( fixd.repl == NULL ) return 1; + repl_send(fixd.repl, "(list 'patched-fixtures (patched-fixture-names))"); gtk_main(); -- cgit v1.2.3