fix-uri-test-crash.diff 422 B

1234567891011121314
  1. diff -Nuar redland-1.0.10.orig/src/rdf_digest.c redland-1.0.10/src/rdf_digest.c
  2. --- redland-1.0.10.orig/src/rdf_digest.c 2010-03-07 01:30:22.588657802 +0200
  3. +++ redland-1.0.10/src/rdf_digest.c 2010-03-07 01:37:17.716408728 +0200
  4. @@ -209,6 +209,9 @@
  5. {
  6. librdf_digest* d;
  7. + if (!factory)
  8. + return NULL;
  9. +
  10. librdf_world_open(world);
  11. d=(librdf_digest*)LIBRDF_CALLOC(librdf_digest, 1, sizeof(librdf_digest));