X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-session.c;h=d3e658dd76dee4fcbaec3a81687e57cd28206bef;hb=6cd94fad12ca4e038aac409e8e1cb9a332a80a39;hp=7c8f91c4307bffeadc97d07816a52e1dddb84bdd;hpb=b5d347b4ef72d0f8cc032259dd5cf7dc13774098;p=src%2Fapp-framework-binder.git diff --git a/src/afb-session.c b/src/afb-session.c index 7c8f91c4..d3e658dd 100644 --- a/src/afb-session.c +++ b/src/afb-session.c @@ -120,7 +120,7 @@ static void free_data (struct afb_session *session) void afb_session_init (int max_session_count, int timeout, const char *initok) { // let's create as store as hashtable does not have any - sessions.store = calloc (1 + (unsigned)max_session_count, sizeof(struct afb_session)); + sessions.store = calloc (1 + (unsigned)max_session_count, sizeof *sessions.store); pthread_mutex_init(&sessions.mutex, NULL); sessions.max = max_session_count; sessions.timeout = timeout;