From: Ray Strode Date: Thu, 1 Oct 2009 14:22:28 +0000 (-0400) Subject: [text-progress-bar] Don't segfault if no os string X-Git-Tag: 0.8.0~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fd849e130db63ccca93d3c661751a13781bbbbf;p=thirdparty%2Fplymouth.git [text-progress-bar] Don't segfault if no os string Some distributions won't have a release file that we know about. In those cases, we shouldn't crash. --- diff --git a/src/libplybootsplash/ply-text-progress-bar.c b/src/libplybootsplash/ply-text-progress-bar.c index b7676c91..5e9baa29 100644 --- a/src/libplybootsplash/ply-text-progress-bar.c +++ b/src/libplybootsplash/ply-text-progress-bar.c @@ -57,7 +57,7 @@ #define NUMBER_OF_INDICATOR_COLUMNS 6 -static char *os_string; +static char *os_string = ""; struct _ply_text_progress_bar {