[svn] gpgme - r1175 - trunk/gpgme
svn author marcus
cvs at cvs.gnupg.org
Sun Jul 16 15:25:20 CEST 2006
Author: marcus
Date: 2006-07-16 15:25:19 +0200 (Sun, 16 Jul 2006)
New Revision: 1175
Modified:
trunk/gpgme/ChangeLog
trunk/gpgme/data.c
Log:
2006-07-16 Marcus Brinkmann <marcus at g10code.de>
* data.c (gpgme_data_set_file_name): Allow to clear the file name
by passing NULL.
Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog 2006-07-06 10:37:52 UTC (rev 1174)
+++ trunk/gpgme/ChangeLog 2006-07-16 13:25:19 UTC (rev 1175)
@@ -1,3 +1,8 @@
+2006-07-16 Marcus Brinkmann <marcus at g10code.de>
+
+ * data.c (gpgme_data_set_file_name): Allow to clear the file name
+ by passing NULL.
+
2006-06-22 Marcus Brinkmann <marcus at g10code.de>
* keylist.c (gpgme_get_key): Also clone the engine info.
Modified: trunk/gpgme/data.c
===================================================================
--- trunk/gpgme/data.c 2006-07-06 10:37:52 UTC (rev 1174)
+++ trunk/gpgme/data.c 2006-07-16 13:25:19 UTC (rev 1175)
@@ -183,9 +183,14 @@
if (dh->file_name)
free (dh->file_name);
- dh->file_name = strdup (file_name);
- if (!dh->file_name)
- return gpg_error_from_errno (errno);
+ if (file_name)
+ {
+ dh->file_name = strdup (file_name);
+ if (!dh->file_name)
+ return gpg_error_from_errno (errno);
+ }
+ else
+ dh->file_name = 0;
return 0;
}
More information about the Gnupg-commits
mailing list