The Smurfs (1981) : The Magical Meanie

Brainy and Clumsy discover a badly behaving genie who's only nice when somebody says the magic words "pumpernickel pickle".