diff options
author | Martin Lindhe <martin-commit@ubique.se> | 2016-11-16 16:04:04 +0100 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2017-01-05 22:38:41 +0300 |
commit | d551b431a194eabd4cc7daab222a8ee4e08f9a65 (patch) | |
tree | 4883329ac2177411252e42035993051824610ece | |
parent | 058782948d08c9f49b78434cf271cc79f63b90e7 (diff) | |
download | nasm-d551b431a194eabd4cc7daab222a8ee4e08f9a65.tar.gz |
Move @debugid declaration to same level as @q
fixes pvs-studio error 'V507 Pointer to local array 'debugid' is
stored outside the scope of this array. Such a pointer will become invalid.'
Signed-off-by: Martin Lindhe <martin-commit@ubique.se>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | asm/nasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1256,6 +1256,7 @@ static void assemble_file(char *fname, StrList **depend_ptr) struct tokenval tokval; expr *e; int pass_max; + char debugid[128]; if (cmd_sb == 32 && iflag_ffs(&cmd_cpu) < IF_386) nasm_fatal(0, "command line: 32-bit segment size requires a higher cpu"); @@ -1504,7 +1505,6 @@ static void assemble_file(char *fname, StrList **depend_ptr) break; case D_DEBUG: /* [DEBUG] */ { - char debugid[128]; bool badid, overlong; p = value; |