Changeset 92413de in mainline for uspace/srv/devman/main.c


Ignore:
Timestamp:
2010-02-25T21:56:24Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c16cf62
Parents:
729fa2d6
Message:

fixed a bug (devman)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/main.c

    r729fa2d6 r92413de  
    101101        }
    102102       
    103         char drv_name[DEVMAN_NAME_MAXLEN];
     103        char *drv_name = NULL;
    104104       
    105105        // Get driver name
    106         int rc = async_string_receive(drv_name, DEVMAN_NAME_MAXLEN, NULL);     
     106        int rc = async_string_receive(&drv_name, DEVMAN_NAME_MAXLEN, NULL);     
    107107        if (rc != EOK) {
    108108                ipc_answer_0(iid, rc);
     
    113113        // Find driver structure
    114114        driver = find_driver(&drivers_list, drv_name);
     115       
     116        free(drv_name);
     117        drv_name = NULL;
     118       
    115119        if (NULL == driver) {
    116120                printf(NAME ": no driver named %s was found.\n", drv_name);
Note: See TracChangeset for help on using the changeset viewer.