From 7733889703bb7080aef7f26aa8f0a58dc0a84ccd Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Sat, 10 Apr 2010 15:03:18 +1200 Subject: [PATCH] Handle missing RC file. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 96d736d..7207a8a 100644 --- a/main.c +++ b/main.c @@ -75,7 +75,8 @@ static void process_rc_file(void) return; snprintf(text, sizeof(text), "%s/.mspdebug", home); - process_file(text); + if (!access(text, F_OK)) + process_file(text); } #define MODE_RF2500 0x01