]> granicus.if.org Git - jq/commitdiff
Fix warning about environ
authorNicolas Williams <nico@cryptonector.com>
Mon, 27 Feb 2017 00:22:30 +0000 (18:22 -0600)
committerNicolas Williams <nico@cryptonector.com>
Mon, 27 Feb 2017 00:22:30 +0000 (18:22 -0600)
src/builtin.c

index b317c146392dd74c8022ec676bc67a29ce20028b..7b2c5d24573e42565981d374ea1b7ef43e0913da 100644 (file)
@@ -1020,7 +1020,7 @@ static jv f_env(jq_state *jq, jv input) {
   jv_free(input);
   jv env = jv_object();
   const char *var, *val;
-  for (const char **e = environ; *e != NULL; e++) {
+  for (char **e = environ; *e != NULL; e++) {
     var = e[0];
     val = strchr(e[0], '=');
     if (val == NULL)