talloc: don't crash if f is NULL in talloc_report_*
commit78338d431c6e4ae8e3ff94b0ba9caaae2a5626a9
authorAndrew Tridgell <tridge@samba.org>
Thu, 17 Sep 2009 23:42:11 +0000 (17 16:42 -0700)
committerAndrew Tridgell <tridge@samba.org>
Fri, 18 Sep 2009 04:52:28 +0000 (17 21:52 -0700)
treebd0abe1a3387a456700bc5bd330be24a3ff62764
parenta3f33356bbad2eb9d8b084a46533e9f0b9b940c9
talloc: don't crash if f is NULL in talloc_report_*

It's annoying when you use
  p talloc_report_full(ctx, fopen("/tmp/xx","w"))
in gdb, and if you don't have write permission on the file then
you get a segv.
lib/talloc/talloc.c