items_written, terminator,
locking, single);
if (encoded != NULL)
- return encoded;
+ goto out;
if (hint == GSM_DIALECT_DEFAULT)
return NULL;
items_written, terminator,
locking, single);
if (encoded != NULL)
- return encoded;
+ goto out;
/* Spanish dialect uses the default locking shift table */
if (hint == GSM_DIALECT_SPANISH)
if (encoded == NULL)
return NULL;
+out:
if (used_locking != NULL)
*used_locking = locking;