• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revision556d4addcb81066f763876ce8a1fc860850ff1aa (tree)
Zeit2016-09-08 03:52:56
AutorAmeya Thakur <ameyat@code...>
CommiterGerrit - the friendly Code Review server

Log Message

init: Fix for handling -p argument in the write command

We now correctly process the -p argument even if it is not the last
argument passed in to the function. The earlier iteration used to
incorrectly skip over it under some cases.

Change-Id: I842ce6f62a85b19a79bef4c082e132d1c9649485

Ändern Zusammenfassung

Diff

--- a/init/builtins.cpp
+++ b/init/builtins.cpp
@@ -822,8 +822,8 @@ static int do_write(const std::vector<std::string>& args) {
822822 break;
823823 } else {
824824 //Value at current index is -p. The next index would
825- //be the prefix.Skip beyond that.
826- i+=2;
825+ //be the prefix.Skip it.
826+ i++;
827827 }
828828 }
829829 if (!path || !value) {