Pass veg_lib to put_data() rather than use extern