From 5715b0aa0ed25551e25ed7f9183dac5c609e7ea2 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Sun, 30 Aug 2009 17:07:47 +0000
Subject: mc crashes while setting tty colors #1574
---
src/tty/color.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/tty/color.c b/src/tty/color.c
index 3cd8e12..e4fcb5e 100644
a
|
b
|
configure_colors_string (const char *the_color_string) |
83 | 83 | char *e; |
84 | 84 | |
85 | 85 | cfb = g_strsplit_set (*p, "=,", 3); |
| 86 | p++; |
| 87 | |
| 88 | if (cfb[0] == NULL) { |
| 89 | g_strfreev (cfb); |
| 90 | continue; |
| 91 | } |
| 92 | |
86 | 93 | /* append '=' to the entry name */ |
87 | 94 | e = g_strdup_printf ("%s=", cfb[0]); |
88 | 95 | g_free (cfb[0]); |
… |
… |
configure_colors_string (const char *the_color_string) |
102 | 109 | } |
103 | 110 | |
104 | 111 | g_strfreev (cfb); |
105 | | p++; |
106 | 112 | } |
107 | 113 | |
108 | 114 | g_strfreev (color_strings); |