VirtualBox

Changeset 101940 in vbox for trunk


Ignore:
Timestamp:
Nov 7, 2023 1:05:00 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160037
Message:

Additions: X11/Wayland: Prevent gcc warning about pFlow can be uninitialized, bugref:10194.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/wayland-helper-gtk.cpp

    r101883 r101940  
    272272    AssertPtrReturn(phIpcSession, VERR_INVALID_PARAMETER);
    273273
    274     const vbcl::ipc::flow_t     *pFlow;
     274    const vbcl::ipc::flow_t *pFlow;
    275275
    276276    int rc = VINF_SUCCESS;
     
    289289        pFlow = vbcl::ipc::clipboard::GHCopyFlow;
    290290    else
     291    {
     292        pFlow = NULL;
    291293        rc = VERR_INVALID_PARAMETER;
     294    }
    292295
    293296    /* Proceed with selected flow. */
    294     if (RT_SUCCESS(rc))
     297    if (RT_VALID_PTR(pFlow))
    295298        rc = g_GtkCtx.Session.oClipboardIpc->flow(pFlow, *phIpcSession);
    296299
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette