Skip to content

Commit

Permalink
Minor optimizatin sqlite3db
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Nov 13, 2016
1 parent a611664 commit bc193e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/sqlite3db.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ class SQLite3_column {
char *name;
SQLite3_column(int a, const char *b) {
datatype=a;
name=strdup(b);
if (b) {
name=strdup(b);
} else {
name=strdup((char *)"");
}
};
~SQLite3_column() {
free(name);
Expand Down

0 comments on commit bc193e8

Please sign in to comment.