[SCM] GNU gnutls branch, master, updated. gnutls-3_0_12-51-g134815f

"Nikos Mavrogiannopoulos" <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=134815f1c46b9b9a05cadbe2345be9b9d1326e49

The branch, master has been updated
       via  134815f1c46b9b9a05cadbe2345be9b9d1326e49 (commit)
      from  6020e0f35ac4de1e4459356a339cf7890dfeaf0b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 134815f1c46b9b9a05cadbe2345be9b9d1326e49
Author: Nikos Mavrogiannopoulos <[email protected]>
Date:   Mon Jan 23 09:49:50 2012 +0100

    corrected token parsing.

-----------------------------------------------------------------------

Summary of changes:
 src/certtool-cfg.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/certtool-cfg.c b/src/certtool-cfg.c
index 0dfbfbc..907ab90 100644
--- a/src/certtool-cfg.c
+++ b/src/certtool-cfg.c
@@ -124,7 +124,6 @@ cfg_init (void)
   { \
     char str[512]; \
     char * p; \
-    int j; \
     if (s_name == NULL) { \
       i = 0; \
       s_name = malloc(sizeof(char*)*MAX_ENTRIES); \
@@ -138,10 +137,14 @@ cfg_init (void)
           exit(1); \
         } \
         p[0] = 0; \
+        p++; \
         s_name[i] = strdup(str); \
-        j = 0; \
-        while(p[j]==' ' || p[j] == '\t') j++; \
-        s_name[i+1] = strdup(p+1); \
+        while(*p==' ' || *p == '\t') p++; \
+        if (p[0] == 0) { \
+          fprintf(stderr, "Error (2) parsing %s\n", name); \
+          exit(1); \
+        } \
+        s_name[i+1] = strdup(p); \
         i+=2; \
         if (i>=MAX_ENTRIES) \
           break; \


hooks/post-receive
-- 
GNU gnutls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.