repo: [scan-build]: Mark a variable used
We're just using this to auto-free, quiet the static analysis.
This commit is contained in:
parent
51d9aa35a9
commit
806206fac2
|
|
@ -871,7 +871,10 @@ write_content_object (OstreeRepo *self,
|
||||||
/* Give a null input if there's no content */
|
/* Give a null input if there's no content */
|
||||||
g_autoptr(GInputStream) null_input = NULL;
|
g_autoptr(GInputStream) null_input = NULL;
|
||||||
if (!input)
|
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,
|
checksum_input = ot_checksum_instream_new_with_start (input, G_CHECKSUM_SHA256,
|
||||||
buf, len);
|
buf, len);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue