[Spice-devel] [PATCH spice-gtk] test-session: Fix comparision
Victor Toso
lists at victortoso.com
Wed Oct 19 12:43:40 UTC 2016
Hi,
On Wed, Oct 19, 2016 at 02:35:59PM +0200, Pavel Grunt wrote:
> The test was not executed because G_N_ELEMENTS is 0 for the pointer
Acked-by: Victor Toso <victortoso at redhat.com>
> ---
> tests/session.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/session.c b/tests/session.c
> index 09856b3..7ed4a41 100644
> --- a/tests/session.c
> +++ b/tests/session.c
> @@ -170,7 +170,7 @@ static void test_session_uri_good(const TestCase *tests, const guint cases)
> }
>
> /* Set port and tls_port, check URI */
> - for (i = 0; i < G_N_ELEMENTS(tests); i++) {
> + for (i = 0; i < cases; i++) {
> gchar *uri;
>
> s = spice_session_new();
> --
> 2.10.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161019/4c635d80/attachment.sig>
More information about the Spice-devel
mailing list