[almanah] vfs: Reuse an existing string literal
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] vfs: Reuse an existing string literal
- Date: Mon, 14 Oct 2019 12:24:31 +0000 (UTC)
commit 8d8525c89062572548164b7ef9f6b518b2d2830a
Author: Philip Withnall <withnall endlessm com>
Date: Mon Oct 14 13:19:17 2019 +0100
vfs: Reuse an existing string literal
This should reduce the compiled binary size by a few bytes.
Signed-off-by: Philip Withnall <withnall endlessm com>
src/vfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vfs.c b/src/vfs.c
index 3324224..6f33bb1 100644
--- a/src/vfs.c
+++ b/src/vfs.c
@@ -695,7 +695,7 @@ almanah_vfs_io_close (sqlite3_file *pFile)
}
if (bytes_written != self->plain_size) {
- g_warning ("Error writing data to plain file %s: Not all the data has been
written to the file\n", self->plain_filename);
+ g_warning ("Error writing data to plain file %s: %s\n", self->plain_filename,
"Not all the data has been written to the file");
g_object_unref (plain_file);
g_object_unref (plain_output_stream);
g_unlink (self->plain_filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]