diff options
author | Nicolas Williams <nico@cryptonector.com> | 2017-02-26 18:22:30 -0600 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2017-02-26 18:22:30 -0600 |
commit | ea90b947b0147ed40f653211161218eabbf6a02b (patch) | |
tree | 3f8866c333024d77de27683adb24fbeed43b9d31 | |
parent | 9a0d79629881b157ed2158bfe187d05ecff486cd (diff) |
Fix warning about environ
-rw-r--r-- | src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtin.c b/src/builtin.c index b317c146..7b2c5d24 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -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) |