Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
python_loaded is only a member of the p_ctx struct when Python is
detected.
  • Loading branch information
Marco van Wieringen committed Mar 20, 2014
1 parent 51410d7 commit a8f26ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/filed/python-fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,11 @@ static bRC pluginIO(bpContext *ctx, struct io_pkt *io)
goto bail_out;
}

#ifdef HAVE_PYTHON
if (!p_ctx->python_loaded) {
goto bail_out;
}

#ifdef HAVE_PYTHON
PyEval_AcquireThread(p_ctx->interpreter);
retval = PyPluginIO(ctx, io);
PyEval_ReleaseThread(p_ctx->interpreter);
Expand Down

0 comments on commit a8f26ab

Please sign in to comment.