[evolution-data-server] Silently skip empty lines when reading autoconfig-variables
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Silently skip empty lines when reading autoconfig-variables
- Date: Mon, 4 Jun 2018 15:15:53 +0000 (UTC)
commit e850b56a867b1c99e236be8d14feb1b90d5bf743
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 4 17:17:11 2018 +0200
Silently skip empty lines when reading autoconfig-variables
.../evolution-source-registry/evolution-source-registry-autoconfig.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c
b/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c
index f3f9810d8..6f03053d6 100644
--- a/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c
+++ b/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c
@@ -662,6 +662,9 @@ e_autoconfig_read_user_variables (GSettings *settings)
const gchar *line = strv[ii];
gchar *name, *value, *sep;
+ if (!*line)
+ continue;
+
sep = strchr (line, '=');
if (!sep || sep == line) {
e_source_registry_debug_print ("Autoconfig: GSettings' autoconfig-variables line '%s'
doesn't conform format 'name=value'.\n", line);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]