mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-09-06 22:01:27 +00:00
redirect: Make sure op_table is pointered vfunc table
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
@@ -18,10 +18,7 @@
|
||||
|
||||
LsiRedirectProfile *lsi_redirect_profile_new(const char *name)
|
||||
{
|
||||
LsiRedirectProfile p = {
|
||||
.name = strdup(name),
|
||||
.op_table = {{ 0 }},
|
||||
};
|
||||
LsiRedirectProfile p = { .name = strdup(name), { 0 } };
|
||||
LsiRedirectProfile *ret = NULL;
|
||||
if (!p.name) {
|
||||
return NULL;
|
||||
|
||||
@@ -53,10 +53,9 @@ typedef enum { LSI_OPERATION_OPEN = 0, LSI_NUM_OPERATIONS } LsiRedirectOperation
|
||||
typedef struct LsiRedirectProfile {
|
||||
char *name; /**< Name for this profile */
|
||||
|
||||
LsiRedirect op_table[LSI_NUM_OPERATIONS]; /* vtable information */
|
||||
LsiRedirect *op_table[LSI_NUM_OPERATIONS]; /* vtable information */
|
||||
} LsiRedirectProfile;
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new LsiRedirectProfile
|
||||
*
|
||||
@@ -72,7 +71,6 @@ LsiRedirectProfile *lsi_redirect_profile_new(const char *name);
|
||||
*/
|
||||
void lsi_redirect_profile_free(LsiRedirectProfile *profile);
|
||||
|
||||
|
||||
/*
|
||||
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user