Revert "Simplify execute(): use getstarg() instead of getstring()"
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 2 Jul 2011 08:00:05 +0000 (10:00 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 9 Jul 2011 13:16:21 +0000 (15:16 +0200)
This reverts commit 96d1039c24774a9032b9e2014d4ce585fa0c764b.  It's in
the next commit's way.

src/lib/player/player.c

index bf6d682a3d1e850785231e164fa2928b7f7a75cd..eb87f78838c067bffdf2bb8a25da1ac65d0ca01d 100644 (file)
@@ -250,7 +250,10 @@ execute(void)
 
     failed = 0;
 
-    p = getstarg(player->comtail[1], "File? ", buf);
+    if (player->comtail[1])
+       p = player->comtail[1];
+    else
+       p = getstring("File? ", buf);
     if (p == NULL || *p == '\0')
        return RET_SYN;
     prexec(p);