Changeset fed5a9b in mainline for uspace/lib/hound/src/client.c


Ignore:
Timestamp:
2017-12-08T21:03:35Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
125c09c
Parents:
a8c7a6d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 03:29:45)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Fix error handling in libhound.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/src/client.c

    ra8c7a6d rfed5a9b  
    123123                        return NULL;
    124124                }
    125                 new_context->id = hound_service_register_context(
    126                     new_context->session, new_context->name, record);
    127                 if (hound_context_id_err(new_context->id) != EOK) {
     125                int rc = hound_service_register_context(
     126                    new_context->session, new_context->name, record,
     127                    &new_context->id);
     128                if (rc != EOK) {
    128129                        hound_service_disconnect(new_context->session);
    129130                        free(new_context->name);
Note: See TracChangeset for help on using the changeset viewer.