]> granicus.if.org Git - nethack/commitdiff
warning fix artifact.c
authornhmall <nhmall@nethack.org>
Thu, 10 Mar 2022 14:15:04 +0000 (09:15 -0500)
committernhmall <nhmall@nethack.org>
Thu, 10 Mar 2022 14:15:04 +0000 (09:15 -0500)
src/artifact.c(65): warning C4132: 'zero_artiexist': const object
should be initialized

src/artifact.c

index 3aab1b5b7207791c0a785001bda2f07cffce4e1e..7ef079dab1cb6d91c8a75e4e11597afc88dea721 100644 (file)
@@ -62,7 +62,7 @@ static xchar artidisco[NROFARTIFACTS];
  * bulk re-init if game restart ever gets implemented.  They are saved
  * and restored but that is done through this file so they can be local.
  */
-static const struct arti_info zero_artiexist; /* all bits zero */
+static const struct arti_info zero_artiexist = {0}; /* all bits zero */
 
 static void hack_artifacts(void);
 static boolean attacks(int, struct obj *);