瀏覽代碼

audio: Attempt to placate NetBSD 9.3's incorrect compiler warning.

Ryan C. Gordon 1 年之前
父節點
當前提交
ece76ec90d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/audio/SDL_audiocvt.c

+ 1 - 0
src/audio/SDL_audiocvt.c

@@ -162,6 +162,7 @@ static void SwizzleAudio(const int num_frames, void *dst, const void *src, int c
             } \
         } else { \
             Uint##bits tmp[SDL_MAX_CHANNEL_MAP_SIZE]; \
+            SDL_zeroa(tmp); \
             SDL_assert(SDL_arraysize(tmp) >= channels); \
             for (int i = 0; i < num_frames; i++, tsrc += channels, tdst += channels) { \
                 for (int ch = 0; ch < channels; ch++) { \