diff options
| author | Andrew Tridgell <tridge@samba.org> | 2009-09-18 11:22:32 -0700 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2009-09-18 11:22:32 -0700 |
| commit | c6d58efa4b1ad5ff4a9e0f224b8a9789d8f82faf (patch) | |
| tree | bd0abe1a3387a456700bc5bd330be24a3ff62764 /lib/talloc | |
| parent | 39971fff27f71b514308d10d7a2d8c3fb58c2420 (diff) | |
| parent | 78338d431c6e4ae8e3ff94b0ba9caaae2a5626a9 (diff) | |
| download | samba-c6d58efa4b1ad5ff4a9e0f224b8a9789d8f82faf.tar.gz samba-c6d58efa4b1ad5ff4a9e0f224b8a9789d8f82faf.tar.xz samba-c6d58efa4b1ad5ff4a9e0f224b8a9789d8f82faf.zip | |
Merge branch 'master' of /home/tridge/samba/git/combined
Diffstat (limited to 'lib/talloc')
| -rw-r--r-- | lib/talloc/talloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index 478767c955..f103a9b941 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -1421,8 +1421,10 @@ static void talloc_report_depth_FILE_helper(const void *ptr, int depth, int max_ */ void talloc_report_depth_file(const void *ptr, int depth, int max_depth, FILE *f) { - talloc_report_depth_cb(ptr, depth, max_depth, talloc_report_depth_FILE_helper, f); - fflush(f); + if (f) { + talloc_report_depth_cb(ptr, depth, max_depth, talloc_report_depth_FILE_helper, f); + fflush(f); + } } /* |
