[Spice-devel] [spice-gtk 2/2] Remove runtime warning when setting a NULL shared-dir

Marc-André Lureau mlureau at redhat.com
Thu Jan 29 03:13:46 PST 2015


ack

----- Original Message -----
> Now that the webdav channel can cope with a NULL shared dir (by not
> creating the webdav server), we no longer need to reject NULL shared
> directories with a warning.
> 
> This fixes part of https://bugzilla.redhat.com/show_bug.cgi?id=1175721
> ---
>  gtk/spice-session.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/gtk/spice-session.c b/gtk/spice-session.c
> index 059cd2f..8de48e5 100644
> --- a/gtk/spice-session.c
> +++ b/gtk/spice-session.c
> @@ -2485,7 +2485,6 @@ G_GNUC_INTERNAL
>  void spice_session_set_shared_dir(SpiceSession *session, const gchar *dir)
>  {
>      g_return_if_fail(SPICE_IS_SESSION(session));
> -    g_return_if_fail(dir != NULL);
>  
>      SpiceSessionPrivate *s = session->priv;
>  
> --
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list