Fix bug of color palette not working properly, due to uninitialized variable

This commit is contained in:
Mario Hüttel 2019-08-25 21:52:22 +02:00
parent b102d90d33
commit 2af859b136

View File

@ -55,7 +55,7 @@ G_DEFINE_TYPE(ColorPalette, color_palette, G_TYPE_OBJECT)
static int count_non_empty_lines_in_array(const char *data, size_t length) static int count_non_empty_lines_in_array(const char *data, size_t length)
{ {
unsigned int idx; unsigned int idx;
int non_empty_lines; int non_empty_lines = 0;
char last_char = '\n'; char last_char = '\n';
if (!data) if (!data)