diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-09-10 17:49:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:37 -0500 |
commit | bbbac99ecb26ee8ddf45defe0b22bf960bb6d4eb (patch) | |
tree | 6189c0f7cead7f3d94e81cd8618d2adf9ccd8da0 /source3/lib | |
parent | d19d3e71261c21f19cbd8f9374fcb0eb8791617f (diff) | |
download | samba-bbbac99ecb26ee8ddf45defe0b22bf960bb6d4eb.tar.gz samba-bbbac99ecb26ee8ddf45defe0b22bf960bb6d4eb.tar.bz2 samba-bbbac99ecb26ee8ddf45defe0b22bf960bb6d4eb.zip |
r25061: Pro-actively shut up Coverity :-)
(This used to be commit f2ce4a803cfd04fa993d2d87720b4b6f67fc46db)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/file_id.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c index 0a1913a9c2..8e8ddb0ab1 100644 --- a/source3/lib/file_id.c +++ b/source3/lib/file_id.c @@ -57,9 +57,11 @@ BOOL file_id_equal(const struct file_id *id1, const struct file_id *id2) */ const char *file_id_string_tos(const struct file_id *id) { - return talloc_asprintf(talloc_tos(), "%llx:%llx", - (unsigned long long)id->devid, - (unsigned long long)id->inode); + char *result = talloc_asprintf(talloc_tos(), "%llx:%llx", + (unsigned long long)id->devid, + (unsigned long long)id->inode); + SMB_ASSERT(result != NULL); + return result; } /* |