diff options
| author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-03 03:26:44 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-03 03:26:44 +0200 |
| commit | b298429804d255c629dfc15f59081f2b05b513a8 (patch) | |
| tree | 5ee6135e8c6cebe6a20d1c58808bba129e87d6e2 | |
| parent | e2f0077935e5f588f555061feb99ec651f80b45b (diff) | |
| download | plan9front-b298429804d255c629dfc15f59081f2b05b513a8.tar.xz | |
ptp: fix fallback case
| -rw-r--r-- | sys/src/cmd/nusb/ptp/ptp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/nusb/ptp/ptp.c b/sys/src/cmd/nusb/ptp/ptp.c index 0ca3cc7f7..b4da3cd8f 100644 --- a/sys/src/cmd/nusb/ptp/ptp.c +++ b/sys/src/cmd/nusb/ptp/ptp.c @@ -826,7 +826,7 @@ fsread(Req *r) respond(r, nil); return; } - while(nod->data == nil){ + if(nod->data == nil){ int offset, count, pos; offset = r->ifcall.offset; @@ -857,8 +857,8 @@ fsread(Req *r) /* no break */ case Qthumb: if(nod->data == nil){ - p = nil; np = 0; + p = nil; if(ptprpc(r, TYPE(path)==Qthumb ? GetThumb : GetObject, 1|DataRecv, nod->handle, &p, &np) < 0){ free(p); |
