repo: [scan-build]: Mark a variable used

We're just using this to auto-free, quiet the static analysis.
This commit is contained in:
Colin Walters 2019-10-14 14:24:18 +00:00
parent 51d9aa35a9
commit 806206fac2
1 changed files with 4 additions and 1 deletions

View File

@ -871,7 +871,10 @@ write_content_object (OstreeRepo *self,
/* Give a null input if there's no content */
g_autoptr(GInputStream) null_input = NULL;
if (!input)
null_input = input = g_memory_input_stream_new_from_data ("", 0, NULL);
{
null_input = input = g_memory_input_stream_new_from_data ("", 0, NULL);
(void) null_input; /* quiet static analysis */
}
checksum_input = ot_checksum_instream_new_with_start (input, G_CHECKSUM_SHA256,
buf, len);