From 1aadad22a9ab6ed81de2cfa6b8665810fef01ef3 Mon Sep 17 00:00:00 2001
From: Vit Rosin <vit_r@list.ru>
Date: Fri, 4 Dec 2009 23:47:21 +0000
Subject: [PATCH] small fix in src_mcconfig_get.c
---
src/mcconfig/get.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mcconfig/get.c b/src/mcconfig/get.c
index 8a1a449..fbb5218 100644
a
|
b
|
mc_config_get_groups (mc_config_t * mc_config, gsize * len) |
46 | 46 | if (!mc_config) |
47 | 47 | { |
48 | 48 | ret = g_try_malloc0 (sizeof (gchar **)); |
49 | | *len=0; |
| 49 | if (len) |
| 50 | *len = 0; |
50 | 51 | return ret; |
51 | 52 | } |
52 | 53 | ret = g_key_file_get_groups (mc_config->handle, len); |
… |
… |
mc_config_get_keys (mc_config_t * mc_config, const gchar * group, gsize * len) |
67 | 68 | if (!mc_config || !group) |
68 | 69 | { |
69 | 70 | ret = g_try_malloc0 (sizeof (gchar **)); |
70 | | *len=0; |
| 71 | if (len) |
| 72 | *len = 0; |
71 | 73 | return ret; |
72 | 74 | } |
73 | 75 | ret = g_key_file_get_keys (mc_config->handle, group, len, NULL); |