[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated (584a8c3 -> e5b1473)
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated (584a8c3 -> e5b1473) |
Date: |
Thu, 31 Oct 2019 12:25:15 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a change to branch master
in repository taler-mdb.
from 584a8c3 reindent code to coding style
new e505667 add doc/
new e5b1473 clearly no leak, remove unnecessary init, remove unnecessary
nfc_close()
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
configure.ac | 1 +
doc/Makefile.am | 1 +
src/nfc.c | 6 +-----
3 files changed, 3 insertions(+), 5 deletions(-)
create mode 100644 doc/Makefile.am
diff --git a/configure.ac b/configure.ac
index 0551c7c..50637c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,5 +139,6 @@ LIBS=$LIBS_SAVE
AC_CONFIG_FILES([Makefile
+ doc/Makefile
src/Makefile])
AC_OUTPUT
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..1a7eb29
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = .
diff --git a/src/nfc.c b/src/nfc.c
index a4ac1ad..2be0a11 100644
--- a/src/nfc.c
+++ b/src/nfc.c
@@ -37,15 +37,12 @@ along with
int nfc_transmit (nfc_context *context, const char *talerPayUrl, size_t
urlSize)
{
- nfc_device *pnd = NULL;
-
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MEMORY LEAK? NFC OPEN?
+ nfc_device *pnd;
pnd = nfc_open (context, NULL); // NULL could be replaced with connstring
if the correct is known
if ( ! pnd )
{
printf ("Unable to open NFC device\n");
- nfc_close (pnd);
return EXIT_FAILURE;
}
@@ -68,7 +65,6 @@ int nfc_transmit (nfc_context *context, const char
*talerPayUrl, size_t urlSize)
nfc_close (pnd);
return EXIT_FAILURE;
}
- ;
// send the message to the wallet
if ( wallet_transmit (pnd, talerPayUrl, urlSize) )
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-taler-mdb] branch master updated (584a8c3 -> e5b1473),
gnunet <=