sr: cosmetic changes

This commit is contained in:
Bert Vermeulen 2012-07-22 15:32:35 +02:00
parent de4d3f99d9
commit 2ac2e629fc
1 changed files with 3 additions and 2 deletions

View File

@ -456,14 +456,15 @@ static int _sr_session_source_add(GPollFD *pollfd, int timeout,
/* Note: cb_data can be NULL, that's not a bug. */
new_pollfds = g_try_realloc(session->pollfds, sizeof(GPollFD) * (session->num_sources + 1));
new_pollfds = g_try_realloc(session->pollfds,
sizeof(GPollFD) * (session->num_sources + 1));
if (!new_pollfds) {
sr_err("session: %s: new_pollfds malloc failed", __func__);
return SR_ERR_MALLOC;
}
new_sources = g_try_realloc(session->sources, sizeof(struct source) *
(session->num_sources + 1));
(session->num_sources + 1));
if (!new_sources) {
sr_err("session: %s: new_sources malloc failed", __func__);
return SR_ERR_MALLOC;