According to the Venezuelan constitution, if the president is unable to continue in office during the first four years of his or her mandate, the vice-president assumes the post until new elections are held within 30 days.
BBC: Hugo Chavez names Nicolas Maduro as his vice-president