[evolution/gnome-43] publish-calendar: Correct type of a 'port' variable to match GUri's port type



commit 44c2192a4e2c5c9d0188a8e62245b3b327cf5c90
Author: Milan Crha <mcrha redhat com>
Date:   Thu Sep 29 10:27:14 2022 +0200

    publish-calendar: Correct type of a 'port' variable to match GUri's port type
    
    GUri uses -1 for 'port not set', but storing such value into an unsigned
    variable makes the -1 an out of bounds value.

 src/plugins/publish-calendar/url-editor-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/publish-calendar/url-editor-dialog.c 
b/src/plugins/publish-calendar/url-editor-dialog.c
index 7b8a1b585a..5a9450d8a8 100644
--- a/src/plugins/publish-calendar/url-editor-dialog.c
+++ b/src/plugins/publish-calendar/url-editor-dialog.c
@@ -305,7 +305,7 @@ set_from_uri (UrlEditorDialog *dialog)
        const gchar *user;
        const gchar *host;
        const gchar *path;
-       guint port;
+       gint port;
 
        uri = dialog->uri;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]