Browse code

- fix_param returns 1 when FPARAM_INT is used and the parameter is not a number Closes SER-101

Jan Janak authored on 11/04/2006 13:12:17
Showing 1 changed files
... ...
@@ -764,9 +764,9 @@ int fix_param(int type, void** param)
764 764
 		if (err == 0) {
765 765
 			p->v.i = num;
766 766
 		} else {
767
-			ERR("Bad number <%s>\n",
768
-			    (char*)(*param));
769
-			goto error;
767
+			     /* Not a number */
768
+			pkg_free(p);
769
+			return 1;
770 770
 		}
771 771
 		break;
772 772