Changes of Revision 9
[-] [+] | Changed | seatedsession.patch |
@@ -16,9 +16,10 @@ + for (i = 0; i < count; ++i) { + if (*session_id == NULL) { + if (sessions[i] != NULL) { -+ if (sd_session_get_seat (sessions[i], seat) >= 0) { ++ if (sd_session_get_seat (sessions[i], &seat) >= 0) { + if (seat != NULL) { + *session_id = strdup(sessions[i]); ++ free(seat); + } + } + } |