projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c0ee2
)
* add some error error checking when trying to retrieve the device name
author
Dirk-Jan C. Binnema
<dirk-jan.binnema@nokia.com>
Tue, 22 May 2007 17:39:18 +0000
(17:39 +0000)
committer
Dirk-Jan C. Binnema
<dirk-jan.binnema@nokia.com>
Tue, 22 May 2007 17:39:18 +0000
(17:39 +0000)
pmo-trunk-r1954
src/modest-init.c
patch
|
blob
|
history
diff --git
a/src/modest-init.c
b/src/modest-init.c
index
b968267
..
03de5b7
100644
(file)
--- a/
src/modest-init.c
+++ b/
src/modest-init.c
@@
-609,8
+609,13
@@
init_device_name (ModestConf *conf)
else
devname[len] = '\0';
- modest_conf_set_string (conf, MODEST_CONF_DEVICE_NAME,devname, NULL);
+ GError *err = NULL;
+ if (!modest_conf_set_string (conf, MODEST_CONF_DEVICE_NAME,devname, &err)) {
+ g_printerr ("modest: error setting device name '%s': %s",
+ devname, err ? err->message: "?");
+ g_error_free (err);
+ }
}
-
+
g_free (devname);
}