diff options
author | sabetts <sabetts> | 2004-10-05 20:57:31 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2004-10-05 20:57:31 +0000 |
commit | a2aeb8461a435621330a692998237f259c356640 (patch) | |
tree | fac0c7b51d71fae0f6c1863c03a7bbee9e96e335 /src/sbuf.c | |
parent | f4db5f65334718728090283acbb5b99f4895a469 (diff) | |
download | ratpoison-a2aeb8461a435621330a692998237f259c356640.zip |
* src/actions.c (cmd_unsetenv): add an '=' to the string passed to
putenv.
Diffstat (limited to 'src/sbuf.c')
-rw-r--r-- | src/sbuf.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -53,6 +53,21 @@ sbuf_free (struct sbuf *b) } } +/* Free the structure but return the string. */ +char * +sbuf_free_struct (struct sbuf *b) +{ + if (b != NULL) + { + char *tmp; + tmp = b->data; + free (b); + return tmp; + } + + return NULL; +} + char * sbuf_concat (struct sbuf *b, const char *str) { |