mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 17:36:22 +00:00
refactor: partly move plugins to glib
That's not very nice yet but we have to start somewhere.
This commit is contained in:
@@ -78,8 +78,8 @@ c_plugin_create(const char* const filename)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
plugin = malloc(sizeof(ProfPlugin));
|
||||
plugin->name = strdup(filename);
|
||||
plugin = g_new0(ProfPlugin, 1);
|
||||
plugin->name = g_strdup(filename);
|
||||
plugin->lang = LANG_C;
|
||||
plugin->module = handle;
|
||||
plugin->init_func = c_init_hook;
|
||||
|
||||
Reference in New Issue
Block a user