summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lindhe <martin-commit@ubique.se>2016-11-16 16:04:04 +0100
committerCyrill Gorcunov <gorcunov@gmail.com>2017-01-05 22:38:41 +0300
commitd551b431a194eabd4cc7daab222a8ee4e08f9a65 (patch)
tree4883329ac2177411252e42035993051824610ece
parent058782948d08c9f49b78434cf271cc79f63b90e7 (diff)
downloadnasm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index fc6d7194..8fb66bc7 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -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;