diff options
author | Bruno Haible <bruno@clisp.org> | 2007-01-27 02:21:21 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-01-27 02:21:21 +0000 |
commit | 2174a7ff65bcf29eb6f6a40d8e2a2e5a068cb27f (patch) | |
tree | ef31ea77b3ff501128b54fc4354e5c358ec6846d /lib/javacomp.c | |
parent | 0ffbcafa9e999aa4f8647d206b219ecd30b88510 (diff) | |
download | gnulib-2174a7ff65bcf29eb6f6a40d8e2a2e5a068cb27f.tar.gz |
Small optimization.
Diffstat (limited to 'lib/javacomp.c')
-rw-r--r-- | lib/javacomp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/javacomp.c b/lib/javacomp.c index 3e0ca1b961..caff268a40 100644 --- a/lib/javacomp.c +++ b/lib/javacomp.c @@ -1,5 +1,5 @@ /* Compile a Java program. - Copyright (C) 2001-2003, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible <haible@clisp.cons.org>, 2001. This program is free software; you can redistribute it and/or modify @@ -48,6 +48,7 @@ #include "clean-temp.h" #include "error.h" #include "xvasprintf.h" +#include "c-strstr.h" #include "gettext.h" #define _(str) gettext (str) @@ -572,7 +573,9 @@ is_envjavac_gcj (const char *javac) fclose (fp); goto failed; } - envjavac_gcj = (strstr (line, "gcj") != NULL); + /* It is safe to call c_strstr() instead of strstr() here; see the + comments in c-strstr.h. */ + envjavac_gcj = (c_strstr (line, "gcj") != NULL); fclose (fp); |