Return NULL from plist_copy() if passed a NULL pointer

This will prevent an assert if a NULL pointer is passed, and can make
writing some code easier and cleaner without the need for a NULL check.
For example, plist_copy(plist_dict_get_item(dict, "abc")) would give us
a copy of the dict's node if the dict has a value for the given key, or
NULL without any further checks.
1 file changed
tree: f0bccad870590cf479c98593a9d62eccf88c3f17
  1. .github/
  2. cython/
  3. fuzz/
  4. include/
  5. libcnary/
  6. m4/
  7. src/
  8. test/
  9. tools/
  10. .gitignore
  11. AUTHORS
  12. autogen.sh
  13. configure.ac
  14. COPYING
  15. COPYING.LESSER
  16. doxygen.cfg.in
  17. Makefile.am
  18. NEWS
  19. README.md
README.md

libplist

About

A small portable C library to handle Apple Property List files in binary or XML.

Requirements

Software:

  • make
  • autoheader
  • automake
  • autoconf
  • libtool
  • pkg-config
  • gcc or clang

Optional:

  • cython (Python bindings)
  • doxygen (Documentation)

Installation

To compile run:

./autogen.sh
make
sudo make install

If you require a custom prefix or other option being passed to ./configure you can pass them directly to ./autogen.sh like this:

./autogen.sh --prefix=/opt/local --without-cython
make
sudo make install

Who/What/Where?

Credits

Apple, iPhone, iPod, and iPod Touch are trademarks of Apple Inc. libimobiledevice is an independent software library and has not been authorized, sponsored, or otherwise approved by Apple Inc.

README Updated on: 2019-05-16