[yelp] Avoid pointer arithmetic warning
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Avoid pointer arithmetic warning
- Date: Mon, 9 Feb 2015 23:37:07 +0000 (UTC)
commit 76dfa3c2e84a16b1812020719e1f3c395f84b171
Author: David King <amigadave amigadave com>
Date: Mon Feb 9 22:02:48 2015 +0000
Avoid pointer arithmetic warning
libyelp/yelp-settings.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 5753978..866cb1d 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -849,7 +849,7 @@ yelp_settings_get_all_params (YelpSettings *settings,
g_string_append (malstr, (gchar *) envi->data);
if (g_str_has_prefix ((gchar *) envi->data, "platform:")) {
g_string_append_c (dbstr, ';');
- g_string_append (dbstr, (gchar *) (envi->data + 9));
+ g_string_append (dbstr, (gchar *) (envi->data) + 9);
}
}
g_string_append_c (malstr, '\'');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]