Merge branch 'ni/tuxbox' into ni/mp/tuxbox

Origin commit data
------------------
Commit: 111ac82c9a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-07-04 (Tue, 04 Jul 2017)
This commit is contained in:
vanhofen
2017-07-04 14:07:10 +02:00
13 changed files with 71 additions and 38 deletions

View File

@@ -682,9 +682,10 @@ string COPKGManager::getPkgDescription(std::string pkgName, std::string pkgDesc)
fseek(fd, 0, SEEK_END);
fgetpos(fd, &fz);
fseek(fd, 0, SEEK_SET);
if (fz.__pos == 0)
if (fz.__pos == 0){
fclose(fd);
return pkgDesc;
}
char buf[512];
string package, version, description;
while (fgets(buf, sizeof(buf), fd)) {