gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r22846 - monkey/branches/MonkeyBacktracking/monkey/src/monk


From: gnunet
Subject: [GNUnet-SVN] r22846 - monkey/branches/MonkeyBacktracking/monkey/src/monkey
Date: Mon, 23 Jul 2012 16:25:54 +0200

Author: safey
Date: 2012-07-23 16:25:53 +0200 (Mon, 23 Jul 2012)
New Revision: 22846

Modified:
   monkey/branches/MonkeyBacktracking/monkey/src/monkey/action_api.c
Log:
Fixing column checks in database access callbacks.

Modified: monkey/branches/MonkeyBacktracking/monkey/src/monkey/action_api.c
===================================================================
--- monkey/branches/MonkeyBacktracking/monkey/src/monkey/action_api.c   
2012-07-23 14:00:08 UTC (rev 22845)
+++ monkey/branches/MonkeyBacktracking/monkey/src/monkey/action_api.c   
2012-07-23 14:25:53 UTC (rev 22846)
@@ -261,8 +261,8 @@
     char *ext;
     int tokenLength;
 
-    if (NULL == colValues[0] || NULL == colValues[1])
-       return 1;               /* Error */
+    if (NULL == colValues[0])
+       return 1;               /* Error */
 
     /* This is done to extract the only the file name from the full path 
coming from the Database */
     token = strtok(colValues[0], "/");
@@ -271,7 +271,6 @@
     do {
        tokenLength = strlen(token);
        ext = &token[tokenLength - 2];
-       printf("%s\n", ext);
        if (strcmp(ext, ".c") == 0) {
            fileName = MONKEY_malloc(sizeof(struct FileName));
            fileName->name = MONKEY_strdup(token);
@@ -326,7 +325,7 @@
     struct Expression *expression;
     struct Function *function = (struct Function *) cls;
 
-    if (NULL == colValues[0] || NULL == colValues[1])
+    if (NULL == colValues[0] || NULL == colValues[1] || NULL == colValues[2])
        return 1;               /* Error */
 
     expression = MONKEY_malloc(sizeof(struct Expression));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]