X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-session.c;h=6fb29bf8447366ddd5a6a09b8fd68bc6ad674ba7;hb=refs%2Ftags%2Fdab%2F4.0.1;hp=536cdbccd46d6faa1e2c31cbc2035dc816122c12;hpb=b596b217c9b82d6be2b1d5486cdced31831aebc3;p=src%2Fapp-framework-binder.git diff --git a/src/afb-session.c b/src/afb-session.c index 536cdbcc..6fb29bf8 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;