~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/query_log/module.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-19 09:09:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2408.
  • Revision ID: olafvdspek@gmail.com-20110819090912-99xtr8q1zpo6p3gi
cppcheck

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
using namespace std;
32
32
using namespace drizzled;
33
33
 
34
 
namespace drizzle_plugin
35
 
{
 
34
namespace drizzle_plugin {
 
35
 
36
36
/**
37
37
 * Forward declarations.
38
38
 * Mac OS X 10.6 with gcc 4.2.1 misses this warning (but still compiles):
78
78
{
79
79
  const char *new_file= var->value->str_value.ptr();
80
80
 
81
 
  if (!new_file)
 
81
  if (not new_file)
82
82
  {
83
83
    errmsg_printf(error::ERROR, _("The query log file name must be defined."));
84
84
    return false;
85
85
  }
86
86
 
87
 
  if (strlen(new_file) == 0)
 
87
  if (not *new_file)
88
88
  {
89
89
    errmsg_printf(error::ERROR, _("The query log file name must have a value."));
90
90
    return false;