It is shown that a convex function, defined on an arbitrary, possibly finite, subset of a linear space, can be extended to the whole space. An application to decision making under risk is given.