Code

xdiff/xprepare: initialise xdlclassifier_t cf in xdl_prepare_env()
authorTay Ray Chuan <rctay89@gmail.com>
Wed, 31 Aug 2011 04:48:46 +0000 (12:48 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Aug 2011 17:03:51 +0000 (10:03 -0700)
commit2738bc3f09fa1baa3e664a6389394ca51e4fd376
tree80a9b1f9ddc565ef995abe3710bee988b689b3e6
parent6486a84cb8e69ddf03b2139db3d968400e05f5b3
xdiff/xprepare: initialise xdlclassifier_t cf in xdl_prepare_env()

Ensure that the xdl_free_classifier() call on xdlclassifier_t cf is safe
even if xdl_init_classifier() isn't called. This may occur in the case
where diff is run with --histogram and a call to, say, xdl_prepare_ctx()
fails.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xprepare.c