diff options
author | 2009-10-26 15:17:10 -0700 | |
---|---|---|
committer | 2009-10-26 15:17:10 -0700 | |
commit | 8e96a87fff4d34a154d1456e9ad47e7b0c322d54 (patch) | |
tree | 7b95e88500f85cfbb7f19c77ee73870fac51e1a2 /message-file.c | |
parent | 94f01d9de914b609e1f02385092b82fd61ca73b5 (diff) |
Remove all calls to g_strdup_printf
Replacing them with calls to talloc_asprintf if possible, otherwise
to asprintf (with it's painful error-handling leaving the pointer
undefined).
Diffstat (limited to 'message-file.c')
-rw-r--r-- | message-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/message-file.c b/message-file.c index 2bd56056..a4c08606 100644 --- a/message-file.c +++ b/message-file.c @@ -75,7 +75,7 @@ notmuch_message_file_open (const char *filename) { notmuch_message_file_t *message; - message = xcalloc (1, sizeof (notmuch_message_file_t)); + message = talloc_zero (NULL, notmuch_message_file_t); message->file = fopen (filename, "r"); if (message->file == NULL) @@ -116,7 +116,7 @@ notmuch_message_file_close (notmuch_message_file_t *message) if (message->file) fclose (message->file); - free (message); + talloc_free (message); } void |