From 9fd849e130db63ccca93d3c661751a13781bbbbf Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Thu, 1 Oct 2009 10:22:28 -0400
Subject: [PATCH] [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.
This also sidesteps a crash on shutdown where we try to strlen the
os string, even though we don't load it or use it.
---
src/libplybootsplash/ply-text-progress-bar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libplybootsplash/ply-text-progress-bar.c b/src/libplybootsplash/ply-text-progress-bar.c
index b7676c9..5e9baa2 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
{
--
1.6.5.rc2