summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86AutoConfig.c
diff options
context:
space:
mode:
authorDavid Nusinow <dnusinow@debian.org>2007-10-11 22:24:31 -0400
committerDavid Nusinow <dnusinow@debian.org>2007-10-11 22:24:31 -0400
commita5089af726b6a4f833b95a31274743c994277e20 (patch)
tree2a8a13da4e6e214b949172290c984b6201cf9651 /hw/xfree86/common/xf86AutoConfig.c
parentcdf29ff45a3cb45573c9d0cb8f82e6ee97953fb5 (diff)
Fix a warning about the control logic in xchomp()
Diffstat (limited to 'hw/xfree86/common/xf86AutoConfig.c')
-rw-r--r--hw/xfree86/common/xf86AutoConfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
index 3630041ae..2b44e6d8b 100644
--- a/hw/xfree86/common/xf86AutoConfig.c
+++ b/hw/xfree86/common/xf86AutoConfig.c
@@ -284,8 +284,8 @@ xchomp(char *line)
len = strlen(line);
if (line[len - 1] == '\n' && len > 0) {
line[len - 1] = '\0';
- return 0;
}
+ return 0;
}
GDevPtr