mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
fix compiler warning in hw/xfree86/loader/loadmod.c
This commit is contained in:
@@ -434,8 +434,6 @@ FindModule(const char *module, const char *dir, const char **subdirlist,
|
||||
strcat(buf, *s);
|
||||
/*xf86Msg(X_INFO,"OS2DIAG: FindModule: buf=%s\n",buf); */
|
||||
if ((stat(buf, &stat_buf) == 0) && S_ISDIR(stat_buf.st_mode)) {
|
||||
int i;
|
||||
|
||||
if (buf[dirlen - 1] != '/') {
|
||||
buf[dirlen++] = '/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user