Changeset: eb517952fdef for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=eb517952fdef
Modified Files:
        monetdb5/mal/mal_listing.c
Branch: Jan2014
Log Message:

Cosmetics.


diffs (41 lines):

diff --git a/monetdb5/mal/mal_listing.c b/monetdb5/mal/mal_listing.c
--- a/monetdb5/mal/mal_listing.c
+++ b/monetdb5/mal/mal_listing.c
@@ -644,7 +644,7 @@ mal2str(MalBlkPtr mb, int flg, int first
        len = GDKmalloc(sizeof(int) * mb->stop);
 
        if( txt == NULL || len == NULL){
-               GDKerror("mal2str"MAL_MALLOC_FAIL);
+               GDKerror("mal2str: " MAL_MALLOC_FAIL);
                if( txt ) GDKfree(txt);
                if( len ) GDKfree(len);
                return NULL;
@@ -656,18 +656,19 @@ mal2str(MalBlkPtr mb, int flg, int first
        }
        ps = GDKmalloc(totlen + mb->stop + 1);
        if( ps == NULL)
-               GDKerror("mal2str"MAL_MALLOC_FAIL);
+               GDKerror("mal2str: " MAL_MALLOC_FAIL);
 
        totlen = 0;
-       for (i = first; i < last; i++) 
-       if( txt[i]){
-               if( ps){
-                       strncpy(ps + totlen, txt[i], len[i]);
-                       ps[totlen + len[i]] = '\n';
-                       ps[totlen + len[i] + 1] = 0;
-                       totlen += len[i] + 1;
+       for (i = first; i < last; i++) {
+               if( txt[i]){
+                       if( ps){
+                               strncpy(ps + totlen, txt[i], len[i]);
+                               ps[totlen + len[i]] = '\n';
+                               ps[totlen + len[i] + 1] = 0;
+                               totlen += len[i] + 1;
+                       }
+                       GDKfree(txt[i]);
                }
-               GDKfree(txt[i]);
        }
        GDKfree(len);
        GDKfree(txt);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to