Add missing return
[scilab.git] / scilab / modules / gui / sci_gateway / c / sci_figure.c
index ea9ac49..80afdda 100644 (file)
@@ -254,6 +254,7 @@ int sci_figure(char * fname, unsigned long fname_len)
                 {
                     Scierror(999, _("%s: Wrong size for input argument #%d: A single string expected.\n"), fname, i + 1);
                     freeAllocatedSingleString(pstProName);
+                    return 1;
                 }
 
                 getAllocatedSingleString(pvApiCtx, piAddrData, &pstVal);