libiodbc-3.52.7-debian_bug508480.patch 577 B

123456789101112131415
  1. Index: libiodbc2-3.52.7/iodbcinst/inifile.c
  2. ===================================================================
  3. --- libiodbc2-3.52.7.orig/iodbcinst/inifile.c 2010-06-26 21:29:43.000000000 +0200
  4. +++ libiodbc2-3.52.7/iodbcinst/inifile.c 2010-06-26 21:30:07.000000000 +0200
  5. @@ -1023,7 +1023,8 @@
  6. if (!_iodbcdm_cfg_find (pCfg, lpszSection, NULL))
  7. {
  8. - while (curr < cbRetBuffer && 0 == _iodbcdm_cfg_nextentry (pCfg))
  9. + while (curr < cbRetBuffer && 0 == _iodbcdm_cfg_nextentry (pCfg)
  10. + && pCfg->section)
  11. {
  12. if (_iodbcdm_cfg_section (pCfg))
  13. break;