]> git.deb.at Git - pkg/abook.git/blobdiff - abook.h
- add xstrdup to have proper checking for memory allocation failures
[pkg/abook.git] / abook.h
diff --git a/abook.h b/abook.h
index 1c1e29d6a0b217e90df5b17815a556a24c3a0156..0cdc513405db7b4bfba13cf4833854779b075cc6 100644 (file)
--- a/abook.h
+++ b/abook.h
@@ -38,7 +38,6 @@ int           strncasecmp (const char *, const char *, size_t);
 
 #define safe_atoi(X)    ((X == NULL) ? 0 : atoi(X))
 #define safe_str(X)    ((X == NULL) ? "" : X)
-#define safe_strdup(X) ((X == NULL) ? NULL : strdup(X))
 
 #ifndef min
 #       define min(x,y) (((x)<(y)) ? (x):(y))