Skip to content
Snippets Groups Projects
Commit c9ec49e0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix logic in bbs.xfer_prot_menu()

This was just a typo which didn't allow the single-file upload xfer prot menu
to be shown.

Actual fix for CID 11447 (previous attempt, commit f50c866f was
insufficient). Thank you Coverity!
parent 10fbf1c4
No related branches found
No related tags found
No related merge requests found
......@@ -2339,7 +2339,7 @@ js_xfer_prot_menu(JSContext *cx, uintN argc, jsval *arglist)
return(JS_FALSE);
if(argc > 0 && argv[0] == JSVAL_TRUE)
xfer_type = XFER_BATCH_UPLOAD;
xfer_type = XFER_UPLOAD;
if(argc > 1 && argv[1] == JSVAL_TRUE)
xfer_type = ((xfer_type == XFER_UPLOAD) ? XFER_BATCH_UPLOAD : XFER_BATCH_DOWNLOAD);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment