summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 13:44:16 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 13:44:16 +0300
commitbd4494363230705c3efaa13f3c94a73fadab88e4 (patch)
tree23bf1dbd912e5130cc4c608bf772f0bc7b8c8bbf /audio/headset.c
parente32c8dcd38b8e2282559a325c59fd6b7fa187d2f (diff)
Use g_clear_error(&err) instead of g_error_free(err); err = NULL
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 0a7f18ed..9ba2138a 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -2040,8 +2040,7 @@ uint32_t headset_config_init(GKeyFile *config)
&err);
if (err) {
debug("audio.conf: %s", err->message);
- g_error_free(err);
- err = NULL;
+ g_clear_error(&err);
} else {
if (strcmp(str, "PCM") == 0)
sco_hci = FALSE;