diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 13:44:16 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 13:44:16 +0300 |
commit | bd4494363230705c3efaa13f3c94a73fadab88e4 (patch) | |
tree | 23bf1dbd912e5130cc4c608bf772f0bc7b8c8bbf /audio/headset.c | |
parent | e32c8dcd38b8e2282559a325c59fd6b7fa187d2f (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.c | 3 |
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; |