Fix warning when built without plugins
This commit is contained in:
		
							parent
							
								
									eb90f076bb
								
							
						
					
					
						commit
						0297da4d6e
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -2506,8 +2506,11 @@ load_perform_file (session *sess, char *file)
 | 
				
			||||||
static int
 | 
					static int
 | 
				
			||||||
cmd_load (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 | 
					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;
 | 
						int len;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!word[2][0])
 | 
						if (!word[2][0])
 | 
				
			||||||
		return FALSE;
 | 
							return FALSE;
 | 
				
			||||||
| 
						 | 
					@ -2551,10 +2554,10 @@ cmd_load (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return TRUE;
 | 
							return TRUE;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sprintf (tbuf, "Unknown file type %s. Maybe you need to install the Perl or Python plugin?\n", word[2]);
 | 
						sprintf (tbuf, "Unknown file type %s. Maybe you need to install the Perl or Python plugin?\n", word[2]);
 | 
				
			||||||
	PrintText (sess, tbuf);
 | 
						PrintText (sess, tbuf);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return FALSE;
 | 
						return FALSE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue