[dev.icinga.com #2082] replace strdup with macro checking for nulls #787

Closed
icinga-migration opened this Issue Nov 15, 2011 · 2 comments

Projects

None yet

1 participant

@icinga-migration
Member

This issue has been migrated from Redmine: https://dev.icinga.com/issues/2082

Created by mfriedrich on 2011-11-15 20:32:09 +00:00

Assignee: (none)
Status: Closed (closed on 2012-05-05 12:02:42 +00:00)
Target Version: (none)
Last Update: 2012-05-05 12:02:42 +00:00 (in Redmine)


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
@icinga-migration
Member

Updated by mfriedrich on 2012-04-20 12:57:38 +00:00

  • Status changed from New to Feedback
@icinga-migration
Member

Updated by mfriedrich on 2012-05-05 12:02:42 +00:00

  • Status changed from Feedback to Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment