]>
git.ozlabs.org Git - petitboot/blobdiff - ui/common/joystick.c
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
- close(pjs->fd);
- pjs->fd = 0;
+ if (pjs->fd >= 0)
+ close(pjs->fd);
talloc_free(pjs);
return NULL;
}
talloc_free(pjs);
return NULL;
}