diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-03-16 15:26:53 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-16 15:30:07 -0500 |
commit | b0251791019b41c1cefa70d65613cef72516086a (patch) | |
tree | bfbafa2f958b56339f45551897af50dba93775e7 /src | |
parent | 66557e0d2b6de33487a8879cc0cb80e1d22fe3f6 (diff) | |
download | ofono-b0251791019b41c1cefa70d65613cef72516086a.tar.bz2 |
Fix: avoid assigning to return structure on error
Diffstat (limited to 'src')
-rw-r--r-- | src/stkutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index bdc7ae5d..a5c3ac06 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -206,12 +206,12 @@ static gboolean parse_dataobj_item(struct comprehension_tlv_iter *iter, if (data[0] == 0) return FALSE; - item->id = data[0]; utf8 = sim_string_to_utf8(data + 1, len - 1); if (utf8 == NULL) return FALSE; + item->id = data[0]; item->text = utf8; return TRUE; |