Categoricals: Accept null pointer as subject.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 2 Nov 2012 14:31:45 +0000 (15:31 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 2 Nov 2012 14:31:45 +0000 (15:31 +0100)
commitfb444ac16dca6eade462a45ccd9fc92e5dfa0069
treee5820aab3d36365ef495ce52d9f61f6b84d19b2f
parentc427bfc34eb7db7e0b489091430fe1cb373b2261
Categoricals: Accept null pointer as subject.

Previously, certain functions would crash, or behave badly if their
argument was NULL.  This change makes them do nothing, or return
default values, as appropriate.  This saves callers having to always
test for NULL.
src/math/categoricals.c