]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[text-progress-bar] Don't segfault if no os string
authorRay Strode <rstrode@redhat.com>
Thu, 1 Oct 2009 14:22:28 +0000 (10:22 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 1 Oct 2009 14:22:28 +0000 (10:22 -0400)
Some distributions won't have a release file that
we know about.  In those cases, we shouldn't crash.

src/libplybootsplash/ply-text-progress-bar.c

index b7676c91b785b13c1305677b8a50a08f733cf6bf..5e9baa29920c33c5d4e79e70aa1544b181b86cce 100644 (file)
@@ -57,7 +57,7 @@
 
 #define NUMBER_OF_INDICATOR_COLUMNS 6
 
-static char *os_string;
+static char *os_string = "";
 
 struct _ply_text_progress_bar
 {