summaryrefslogtreecommitdiffstats
path: root/contrib/csup/rcsfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/csup/rcsfile.c')
-rw-r--r--contrib/csup/rcsfile.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/csup/rcsfile.c b/contrib/csup/rcsfile.c
index 7dd111f..ca9d58f 100644
--- a/contrib/csup/rcsfile.c
+++ b/contrib/csup/rcsfile.c
@@ -232,6 +232,7 @@ rcsfile_send_details(struct rcsfile *rf, struct stream *wr)
{
struct delta *d;
struct tag *t;
+ const char *keyword;
int error;
assert(rf != NULL);
@@ -264,10 +265,13 @@ rcsfile_send_details(struct rcsfile *rf, struct stream *wr)
return(error);
/* Write expand. */
if (rf->expand != EXPAND_DEFAULT) {
- error = proto_printf(wr, "E %s\n",
- keyword_encode_expand(rf->expand));
- if (error)
- return(error);
+ keyword = keyword_encode_expand(rf->expand);
+ if (keyword != NULL) {
+ error = proto_printf(wr, "E %s\n",
+ keyword_encode_expand(rf->expand));
+ if (error)
+ return(error);
+ }
}
/* Write tags to server. */
OpenPOWER on IntegriCloud