patch-lib_utils_c 448 B

12345678910111213141516
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. * prevent segfault with uClibc
  3. http://www.spinics.net/lists/dm-crypt/msg01187.html
  4. --- cryptsetup-1.0.6.orig/lib/utils.c 2007-12-01 17:29:27.000000000 +0100
  5. +++ cryptsetup-1.0.6/lib/utils.c 2008-12-25 14:18:46.523091272 +0100
  6. @@ -27,6 +27,8 @@ static char *error=NULL;
  7. void set_error_va(const char *fmt, va_list va)
  8. {
  9. + if(!fmt) return;
  10. +
  11. if(error) {
  12. free(error);
  13. error=NULL;