Index: apps/app_directory.c =================================================================== --- apps/app_directory.c (revision 63359) +++ apps/app_directory.c (working copy) @@ -97,7 +97,7 @@ size_t fdlen = 0; void *fdm = MAP_FAILED; SQLHSTMT stmt; - char sql[256]; + char sql[256], empty[10] = ""; char fmt[80]=""; char *c; SQLLEN colsize; @@ -149,7 +149,7 @@ break; } - res = SQLGetData(stmt, 1, SQL_BINARY, NULL, 0, &colsize); + res = SQLGetData(stmt, 1, SQL_BINARY, empty, 0, &colsize); fdlen = colsize; if (fd > -1) { char tmp[1]="";