diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2008-11-10 16:20:41 +0000 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2008-11-10 16:20:41 +0000 |
commit | 79db433025da916140571151ba6bdbd5de33f8fe (patch) | |
tree | 7b15dd8eeec611d8ec02dc731a656ed7d1d51a61 /packages/e17/illume/gsm-segfault.patch | |
parent | 872fae1c4a7236c1e3f940fb057dacc11459f189 (diff) |
illume: Actually use a patch that applies. Sorry.
Diffstat (limited to 'packages/e17/illume/gsm-segfault.patch')
-rw-r--r-- | packages/e17/illume/gsm-segfault.patch | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/packages/e17/illume/gsm-segfault.patch b/packages/e17/illume/gsm-segfault.patch index f7bf87a9f1..f9fc2645b6 100644 --- a/packages/e17/illume/gsm-segfault.patch +++ b/packages/e17/illume/gsm-segfault.patch @@ -1,28 +1,27 @@ -Index: src/e_mod_gad_gsm.c +Index: illume/src/e_mod_gad_gsm.c =================================================================== ---- src/e_mod_gad_gsm.c (revision 37564) -+++ src/e_mod_gad_gsm.c (working copy) -@@ -353,7 +353,7 @@ +--- illume.orig/src/e_mod_gad_gsm.c 2008-11-10 16:15:08.000000000 +0000 ++++ illume/src/e_mod_gad_gsm.c 2008-11-10 16:16:23.000000000 +0000 +@@ -357,7 +357,7 @@ { /* We care only about the provider name right now. All the other status * informations get ingnored for the gadget for now */ - const char *provider, *name, *reg_stat; + const char *provider = 0 , *name = 0, *reg_stat = 0; DBusMessageIter iter, a_iter, s_iter, v_iter; - + if (!dbus_message_has_signature(msg, "a{sv}")) return NULL; -@@ -380,10 +380,13 @@ - dbus_message_iter_next(&a_iter); +@@ -384,10 +384,13 @@ + dbus_message_iter_next(&a_iter); } - + + if (!reg_stat) return NULL; if (strcmp(reg_stat, "unregistered") == 0) provider = "No Service"; else if (strcmp(reg_stat, "busy") == 0) provider = "Searching..."; else if (strcmp(reg_stat, "denied") == 0) provider = "SOS only"; -- -+ + + if (!provider) return NULL; + return strdup(provider); } - + |