From feef2120df2fcbba8f588eb137ec86c8b0529e6a Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Fri, 10 Jul 2015 17:24:21 +0100 Subject: [PATCH] [QA] Fix spelling in a comment and add function comment --- src/download.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/download.c b/src/download.c index ef75b02f..f449a2f5 100644 --- a/src/download.c +++ b/src/download.c @@ -165,7 +165,9 @@ static void unlock_file(const char *fn) g_mutex_unlock(file_list_mutex); } - +/** + * Unzip a file - replacing the file with the unzipped contents of the self + */ static void uncompress_zip ( gchar *name ) { GError *error = NULL; @@ -186,7 +188,7 @@ static void uncompress_zip ( gchar *name ) return; } - // This overwrires any previous file contents + // This overwrites any previous file contents if ( ! g_file_set_contents ( name, unzip_mem, ucsize, &error ) ) { g_critical ( "Couldn't write file '%s', because of %s", name, error->message ); g_error_free ( error ); -- 2.39.5