Fix two memory failures
authorKlaus Ethgen <Klaus@Ethgen.de>
Sun, 21 Jun 2009 22:52:08 +0000 (22:52 +0000)
committerKlaus Ethgen <Klaus@Ethgen.de>
Sun, 21 Jun 2009 22:52:08 +0000 (22:52 +0000)
commitd820c538051df54a6316047a3da7ce77414fa980
treea4429813402cb8184b7364aad1dfb3b6af9f14a2
parent48de954045b9d2f5e00ef8ef1be0c23f1babf8ec
Fix two memory failures

1. if the description field for a exif information is empty the program
   dumps core when trying to change this. The reason is a strcmp with a
   NULL value.

   The fix add the small functionality to set the field to default when
   it is set empty.

2. There was a g_strdup miss in exif.c which could end in memory
   corruption.
src/bar_exif.c
src/exif.c