aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/omgps/omgps/use.unused.variable.patch
blob: 3ccb14ea9437f38104c0d6534b2606c94cba7700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Upstream-Status: Submitted
https://code.google.com/p/omgps/issues/detail?id=15

--- a/src/settings.c	2011-12-12 13:21:30.573400795 +0100
+++ b/src/settings.c	2011-12-12 14:11:05.269606119 +0100
@@ -278,6 +278,9 @@
 	}
 
 	ret = check_settings(errbuf, ERRBUF_LEN);
+	if (ret == FALSE) {
+		snprintf(errbuf, ERRBUF_LEN, "Something wrong while loading settings file");
+	}
 
 	if (fd > 0)
 		close(fd);