argv[0] is binary name.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39170 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-10-28 15:10:58 +00:00
parent 53612087c4
commit 20bf353a79

View File

@ -62,7 +62,7 @@ PrintersApp::MessageReceived(BMessage* msg)
void
PrintersApp::ArgvReceived(int32 argc, char** argv)
{
for (int i; i < argc; i++) {
for (int i = 1; i < argc; i++) {
// TODO: show a pre-filled add printer dialog here
}
}