summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/libpanel/edit.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-06-18 21:26:28 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-06-18 21:26:28 +0200
commitae311094ad8f95c1ff5d06a8edd865579175922d (patch)
treed7054a1bed19d471b37a798ef48fd12397d875ae /sys/src/cmd/mothra/libpanel/edit.c
parent9428062b551f78a6a0bf0625568604d79d2ba632 (diff)
mothra/webfs: multipart/form-data and file upload support
Diffstat (limited to 'sys/src/cmd/mothra/libpanel/edit.c')
-rw-r--r--sys/src/cmd/mothra/libpanel/edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/mothra/libpanel/edit.c b/sys/src/cmd/mothra/libpanel/edit.c
index afb52f776..e6d46c459 100644
--- a/sys/src/cmd/mothra/libpanel/edit.c
+++ b/sys/src/cmd/mothra/libpanel/edit.c
@@ -258,6 +258,7 @@ void plegetsel(Panel *p, int *sel0, int *sel1){
int plelen(Panel *p){
Textwin *t;
t=((Edit *)p->data)->t;
+ if(t==0) return 0;
return t->etext-t->text;
}
Rune *pleget(Panel *p){