Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62c11986 authored by Arseniy Antonov's avatar Arseniy Antonov
Browse files

Fix of memset usage



Build process failed following error (GCC 5.0):
btif_storage.c:1503:9: error: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Werror=memset-transposed-args]

Change-Id: I46e0d8bd6fcd9439b50b4f0aed5391c808b9eb73
Signed-off-by: default avatarArseniy Antonov <arseniy.antonov@intel.com>
parent 64f19a54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1500,7 +1500,7 @@ bt_status_t btif_storage_read_hl_apps_cb(char *value, int value_size)

    if (!btif_config_exist("Local", BTIF_STORAGE_HL_APP, BTIF_STORAGE_HL_APP_CB))
    {
        memset(value, value_size, 0);
        memset(value, 0, value_size);
        if (!btif_config_set("Local", BTIF_STORAGE_HL_APP,BTIF_STORAGE_HL_APP_CB,
                             value, value_size, BTIF_CFG_TYPE_BIN))
        {