sr: cosmetic changes
This commit is contained in:
parent
de4d3f99d9
commit
2ac2e629fc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue