summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/file_id.c8
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;
}
/*