From: Sam James Date: Mon, 15 Apr 2024 04:53:01 +0000 (+0100) Subject: liblzma: outqueue: add header guard X-Git-Tag: v5.7.1alpha~370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7ef767c49351743d8d011574abb9e200bf6b24f;p=thirdparty%2Fxz.git liblzma: outqueue: add header guard Reported by github's codeql. --- 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