Fossil

Artifact [67f0bc66]
Login

Artifact [67f0bc66]

Artifact 67f0bc66e11d664acc44b67bd45c4302045b07fb:

Attachment "no-empty-stash.patch" to ticket [58290cd2] added by anonymous 2011-03-15 04:20:30.
Index: src/stash.c
===================================================================
--- src/stash.c
+++ src/stash.c
@@ -379,11 +379,11 @@
   }
   nCmd = strlen(zCmd);
   if( memcmp(zCmd, "save", nCmd)==0 ){
     stashid = stash_create();
     undo_disable();
-    if( g.argc>=3 ){
+    if( g.argc>=2 ){
       int nFile = db_int(0, "SELECT count(*) FROM stashfile WHERE stashid=%d",
                          stashid);
       char **newArgv = fossil_malloc( sizeof(char*)*(nFile+2) );
       int i = 2;
       Stmt q;