diff options
| author | Joakim Verona | 2012-12-08 18:26:49 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-08 18:26:49 +0100 |
| commit | bf2e04d89c5b9a6aedfce2e55b001bc3e2b2deda (patch) | |
| tree | dbd1f92e1bfa1b9d1f3073972cc5dd0ce3440538 /src/alloc.c | |
| parent | 64fde7a1daeff88ff057f43979fe8fa18094bd82 (diff) | |
| parent | 5745a7df2b4abe06d032820f6ec7ddbac9ad5028 (diff) | |
| download | emacs-bf2e04d89c5b9a6aedfce2e55b001bc3e2b2deda.tar.gz emacs-bf2e04d89c5b9a6aedfce2e55b001bc3e2b2deda.zip | |
auto upstream
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 0f105f87207..5a3ba465d81 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -820,6 +820,15 @@ xstrdup (const char *s) | |||
| 820 | return p; | 820 | return p; |
| 821 | } | 821 | } |
| 822 | 822 | ||
| 823 | /* Like putenv, but (1) use the equivalent of xmalloc and (2) the | ||
| 824 | argument is a const pointer. */ | ||
| 825 | |||
| 826 | void | ||
| 827 | xputenv (char const *string) | ||
| 828 | { | ||
| 829 | if (putenv ((char *) string) != 0) | ||
| 830 | memory_full (0); | ||
| 831 | } | ||
| 823 | 832 | ||
| 824 | /* Unwind for SAFE_ALLOCA */ | 833 | /* Unwind for SAFE_ALLOCA */ |
| 825 | 834 | ||