]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
env.c (parse_bind_var): Initialize value to avoid (false positive) warning.
authorJakub Jelinek <jakub@redhat.com>
Mon, 14 Oct 2013 08:26:18 +0000 (10:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 14 Oct 2013 08:26:18 +0000 (10:26 +0200)
* env.c (parse_bind_var): Initialize value to avoid
(false positive) warning.

From-SVN: r203514

libgomp/ChangeLog
libgomp/env.c

index cfcc48aa3a75ed1c1ea1fc7ef903272147b9b7c3..440174ecbc591b9626789bf0808fe3e7cba67d82 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * env.c (parse_bind_var): Initialize value to avoid
+       (false positive) warning.
+
 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
 
        PR libgomp/58691
index 75483385b807f866f0046b538ee47297ea35f0f1..afd03f020d08771e8ddbfa637878dcdd0a0c3b59 100644 (file)
@@ -309,7 +309,7 @@ parse_bind_var (const char *name, char *p1stvalue,
                char **pvalues, unsigned long *pnvalues)
 {
   char *env;
-  char value, *values = NULL;
+  char value = omp_proc_bind_false, *values = NULL;
   int i;
   static struct proc_bind_kinds
   {