Fixed compiler warning
authorMartin Willi <martin@revosec.ch>
Mon, 10 Oct 2011 12:12:47 +0000 (14:12 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 14 Oct 2011 08:05:47 +0000 (10:05 +0200)
src/libstrongswan/plugins/plugin_feature.c

index 03769c4..2a97205 100644 (file)
@@ -324,13 +324,10 @@ bool plugin_feature_load(plugin_t *plugin, plugin_feature_t *feature,
 bool plugin_feature_unload(plugin_t *plugin, plugin_feature_t *feature,
                                                   plugin_feature_t *reg)
 {
-       char *name;
-
        if (!reg)
        {       /* noting to do for this feature */
                return TRUE;
        }
-       name = plugin->get_name(plugin);
        if (reg->kind == FEATURE_CALLBACK)
        {
                if (reg->arg.cb.f(plugin, feature, FALSE, reg->arg.cb.data))