~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.cc

  • Committer: Monty Taylor
  • Date: 2009-04-01 01:00:08 UTC
  • mto: (971.1.10 mordred)
  • mto: This revision was merged to the branch mainline in revision 971.
  • Revision ID: mordred@inaugust.com-20090401010008-xjoc47g2tizkrqrv
Fixed lack-of-NULL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
 
166
166
class LoggingGearman : public Logging_handler
167
167
{
168
 
 
169
 
  virtual bool post (Session *session)
 
168
public:
 
169
  LoggingGearman() : Logging_handler() {}
 
170
  virtual bool post(Session *session)
170
171
  {
171
172
    char msgbuf[MAX_MSG_LEN];
172
173
    int msgbuf_len= 0;
234
235
 
235
236
static int logging_gearman_plugin_init(void *p)
236
237
{
237
 
  Logging_handler **l= static_cast<Logging_handler **>(p);
 
238
  Logging_handler **handler= static_cast<Logging_handler **>(p);
 
239
  *handler= NULL;
238
240
 
239
241
  gearman_return_t ret;
240
242
 
272
274
    return 0;
273
275
  }
274
276
 
275
 
  *l= new LoggingGearman();
 
277
  *handler= new LoggingGearman();
276
278
 
277
279
  return 0;
278
280
}