Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

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

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

Comments

@icinga-migration
Copy link

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
Copy link
Author

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

  • Status changed from New to Feedback

@icinga-migration
Copy link
Author

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

  • Status changed from Feedback to Closed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant