Check the arguments
This commit is contained in:
parent
f05af80ee9
commit
b131d0d80f
@ -89,6 +89,8 @@ static int _copy(Prefs * prefs, unsigned int filec, char * filev[])
|
||||
GtkWidget * widget;
|
||||
PangoFontDescription * bold;
|
||||
|
||||
if(filec < 2 || filev == NULL)
|
||||
return 1; /* FIXME report error */
|
||||
copy.prefs = prefs;
|
||||
copy.filec = filec;
|
||||
copy.filev = filev;
|
||||
|
@ -56,13 +56,15 @@ static void _move_on_closex(GtkWidget * widget, GdkEvent * event,
|
||||
gpointer data);
|
||||
static gboolean _move_idle_first(gpointer data);
|
||||
|
||||
static int _move(Prefs * prefs, int filec, char * filev[])
|
||||
static int _move(Prefs * prefs, unsigned int filec, char * filev[])
|
||||
{
|
||||
static Move move;
|
||||
GtkWidget * vbox;
|
||||
GtkWidget * hbox;
|
||||
GtkWidget * widget;
|
||||
|
||||
if(filec < 2 || filev == NULL)
|
||||
return 1; /* FIXME report error */
|
||||
move.prefs = prefs;
|
||||
move.filec = filec;
|
||||
move.filev = filev;
|
||||
|
Loading…
Reference in New Issue
Block a user