diff options
author | TingPing <tingping@tingping.se> | 2014-01-16 00:46:49 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-01-16 00:46:49 -0500 |
commit | 0297da4d6e2cb4513aa3d864c6218b5b8b11ec68 (patch) | |
tree | f4dc1327b93cb110241df81855a87040044351d0 /src | |
parent | eb90f076bbdde4ca9d01ea159df22743901df2a9 (diff) |
Fix warning when built without plugins
Diffstat (limited to 'src')
-rw-r--r-- | src/common/outbound.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index 7910eed4..34e44a7d 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -2506,8 +2506,11 @@ load_perform_file (session *sess, char *file) static int cmd_load (struct session *sess, char *tbuf, char *word[], char *word_eol[]) { - char *error, *arg, *file, *buf; + char *file, *buf; +#ifdef USE_PLUGIN + char *error, *arg; int len; +#endif if (!word[2][0]) return FALSE; @@ -2551,10 +2554,10 @@ cmd_load (struct session *sess, char *tbuf, char *word[], char *word_eol[]) return TRUE; } -#endif sprintf (tbuf, "Unknown file type %s. Maybe you need to install the Perl or Python plugin?\n", word[2]); PrintText (sess, tbuf); +#endif return FALSE; } |