author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Thu, 6 Oct 2011 16:03:35 +0000 (18:03 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Oct 2011 22:46:12 +0000 (15:46 -0700) | ||
commit | 05ac978495e84fe03d91ab591524b7ea138900ed | |
tree | 3236dfbac92de4c0578ee2e038e54286a0693e8f | tree | snapshot |
parent | 703f05ad5835cff92b12c29aecf8d724c8c847e2 | commit | diff |
pickaxe: plug diff filespec leak with empty needle
Check first for the unlikely case of an empty needle string and only
then populate the filespec, lest we leak it.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Check first for the unlikely case of an empty needle string and only
then populate the filespec, lest we leak it.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-pickaxe.c | diff | blob | history |