From cede418d4f8e1fb4c8a30839fa5d3b14743e83d4 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 15 Apr 2024 05:53:56 +0100 Subject: [PATCH] liblzma: easy_preset: add header guard Reported by github's codeql. (cherry picked from commit 55dcae3056d95cb2ddb8b560c12ba7596bc79f2c) --- src/liblzma/common/easy_preset.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/liblzma/common/easy_preset.h b/src/liblzma/common/easy_preset.h index d0ca1a62..4ef6d044 100644 --- a/src/liblzma/common/easy_preset.h +++ b/src/liblzma/common/easy_preset.h @@ -9,6 +9,9 @@ // /////////////////////////////////////////////////////////////////////////////// +#ifndef LZMA_EASY_PRESET_H +#define LZMA_EASY_PRESET_H + #include "common.h" @@ -29,3 +32,5 @@ typedef struct { /// Set *easy to the settings given by the preset. Returns true on error, /// false on success. extern bool lzma_easy_preset(lzma_options_easy *easy, uint32_t preset); + +#endif