Browse Source

ft: 代码修改

master
SisMaker 3 years ago
parent
commit
bdb31043c6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      c_src/tracer/tpTracerNif.c

+ 2
- 2
c_src/tracer/tpTracerNif.c View File

@ -75,7 +75,7 @@ static ERL_NIF_TERM enabled(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[])
const ERL_NIF_TERM *tuple; const ERL_NIF_TERM *tuple;
ErlNifPid tracer_pid; ErlNifPid tracer_pid;
if (!enif_get_tuple(env, value, &arity, &tuple)) {
if (!enif_get_tuple(env, argv[1], &arity, &tuple)) {
return atom_remove; return atom_remove;
} }
@ -99,7 +99,7 @@ static ERL_NIF_TERM enabled_procs(ErlNifEnv *env, int argc, const ERL_NIF_TERM a
int arity; int arity;
const ERL_NIF_TERM *tuple; const ERL_NIF_TERM *tuple;
if (!enif_get_tuple(env, value, &arity, &tuple)) {
if (!enif_get_tuple(env, argv[1], &arity, &tuple)) {
return atom_remove; return atom_remove;
} }

Loading…
Cancel
Save