]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: easy_preset: add header guard
authorSam James <sam@gentoo.org>
Mon, 15 Apr 2024 04:53:56 +0000 (05:53 +0100)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 25 Apr 2024 11:04:24 +0000 (14:04 +0300)
Reported by github's codeql.

src/liblzma/common/easy_preset.h

index d0ca1a6234a191ab683f6273361b44f81b91a3c3..4ef6d044ad57a0a2ef175cd95440ef052dcdbe30 100644 (file)
@@ -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