src/session.c in mockspotify-0.1.0 vs src/session.c in mockspotify-0.1.1
- old
+ new
@@ -64,10 +64,7 @@
}
sp_user *
sp_session_user(sp_session *session)
{
- char *username = ALLOC_N(char, 1024);
- strncpy(username, session->username, 1024);
- sp_user *user = mocksp_user_create(username, NULL, NULL, NULL, SP_RELATION_TYPE_NONE, 1);
- return user;
+ return mocksp_user_create(session->username, "", "", "", SP_RELATION_TYPE_NONE, 1);
}