From c7ef767c49351743d8d011574abb9e200bf6b24f Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 15 Apr 2024 05:53:01 +0100 Subject: [PATCH] liblzma: outqueue: add header guard Reported by github's codeql. --- src/liblzma/common/outqueue.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/liblzma/common/outqueue.h b/src/liblzma/common/outqueue.h index ae56f636..25f07197 100644 --- a/src/liblzma/common/outqueue.h +++ b/src/liblzma/common/outqueue.h @@ -9,6 +9,9 @@ // /////////////////////////////////////////////////////////////////////////////// +#ifndef LZMA_OUTQUEUE_H +#define LZMA_OUTQUEUE_H + #include "common.h" @@ -251,3 +254,5 @@ lzma_outq_outbuf_memusage(size_t buf_size) assert(buf_size <= SIZE_MAX - sizeof(lzma_outbuf)); return sizeof(lzma_outbuf) + buf_size; } + +#endif