Bug #2082

replace strdup with macro checking for nulls

Added by dnsmichi over 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:11/15/2011
Priority:LowDue date:
Assignee:-% Done:


Target version:-
Icinga Version: OS Version:


replace strdup with a special macro, checking if string is null, and if, just pass null again instead of passing null to strdup.

#define xstrdup(str) str ? strdup(str) : NULL


#1 Updated by dnsmichi about 2 years ago

  • Status changed from New to Feedback

#2 Updated by dnsmichi almost 2 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF