[PATCH v2 1/2] Fix for double close of a single file descriptor.
[PATCH v2 1/2] Fix for double close of a single file descriptor.

In direct_file_close(), 'file->fd' is closed twice if 'file->file' isn't NULL.
Since'file->file' is assigned the result of fdopen(file->fd, ) in direct_fgets(),
fclose(file->file,) also closes 'file->fd', so it doesn't need to be closed again with close(file->fd).
Similary, in direct_pclose() close(file->fd) doesn't need to be called after calling fclose(file->file).

v2 changes:
  - check a return value of fclose() in direct_file_close().

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>

Thanks!!!

djbclark/directfb-core-DirectFB,sklnet/DirectFB,kaostao/directfb,DirectFB/directfb,mtsekm/test,djbclark/directfb-core-DirectFB,dfbdok/DirectFB1,mtsekm/test,djbclark/directfb-core-DirectFB,kevleyski/directfb,kevleyski/directfb,jcdubois/DirectFB,deniskropp/DirectFB,sklnet/DirectFB,lancebaiyouview/DirectFB,dfbdok/DirectFB1,DirectFB/directfb,deniskropp/DirectFB,deniskropp/DirectFB,sklnet/DirectFB,djbclark/directfb-core-DirectFB,sklnet/DirectFB,kaostao/directfb,deniskropp/DirectFB,jcdubois/DirectFB,mtsekm/test,kevleyski/directfb,jcdubois/DirectFB,lancebaiyouview/DirectFB,kevleyski/directfb,DirectFB/directfb,dfbdok/DirectFB1,kaostao/directfb,lancebaiyouview/DirectFB,lancebaiyouview/DirectFB