Added missing break in switch/case

That missing break is not just a memory leak:
It results in incorrect call to mdb_unicode2ascii for binary data!
I suspect that is what is causing segfault on some db as repported on
https://github.com/brianb/mdbtools/issues/19
This commit is contained in:
tyzhaoqi
2013-06-23 17:56:53 +02:00
committed by Nirgal Vourgère
parent eeadcb54f3
commit 9cd05ffdcc

View File

@@ -930,6 +930,7 @@ char *mdb_col_to_string(MdbHandle *mdb, void *buf, int start, int datatype, int
text = g_malloc(size);
memcpy((char*)buf+start, text, size);
}
break;
case MDB_TEXT:
if (size<0) {
text = g_strdup("");