From 1aeb59ddac54339676b6045e97d3ebc6ecd6ca63 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 26 Sep 2007 02:28:07 +0000 Subject: [PATCH] Port David's crash fix of 12 Sept svn path=/trunk/boinc_samples/; revision=13665 --- example_app/uc2_graphics.C | 1 + 1 file changed, 1 insertion(+) diff --git a/example_app/uc2_graphics.C b/example_app/uc2_graphics.C index 4e76f1539f..b3876ac226 100644 --- a/example_app/uc2_graphics.C +++ b/example_app/uc2_graphics.C @@ -232,6 +232,7 @@ static void parse_project_prefs(char* buf) { char cs[256]; COLOR c; double hue; + if (!buf) return; if (parse_str(buf, "", cs, 256)) { if (!strcmp(cs, "Tahiti Sunset")) { hue = .9;