Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVukelich committed Nov 12, 2016
1 parent f52956f commit 958b2a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions argbuild.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "argbuild.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Expand Down Expand Up @@ -101,11 +100,10 @@ int get_args(arg_t* args, char** argv_to_fill){

//If the last non-null character in the last argument
//is a backslash, replace it with a space
if(it->next == NULL && it->arg[it->arg_len - 1] == '\\'){
it->arg[it->arg_len - 1] = ' ';
if(it->next == NULL && it->arg[it->arg_len - 2] == '\\'){
it->arg[it->arg_len - 2] = ' ';
}

puts(argv_to_fill[numargs - 1]);
}

//The last elt in this array is a null pointer
Expand Down

0 comments on commit 958b2a2

Please sign in to comment.