mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
A bit of error checking when called with bad arguments. Needs more work.
Original commit message from CVS: A bit of error checking when called with bad arguments. Needs more work.
This commit is contained in:
parent
c4f01ba01e
commit
01fde3c83c
1 changed files with 10 additions and 2 deletions
|
@ -57,8 +57,8 @@ int main(int argc,char *argv[]) {
|
|||
comp_argument *argument;
|
||||
enum_value *option;
|
||||
|
||||
gchar *prev_word = argv[3];
|
||||
gchar *partial_word = argv[2];
|
||||
gchar *prev_word;
|
||||
gchar *partial_word;
|
||||
int partial_len;
|
||||
GList *elements;
|
||||
GSList *pads;
|
||||
|
@ -69,6 +69,14 @@ int main(int argc,char *argv[]) {
|
|||
|
||||
struct stat stat_buf;
|
||||
|
||||
if(argc<4){
|
||||
fprintf(stderr,"gst-complete called with invalid arguments\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
prev_word = argv[3];
|
||||
partial_word = argv[2];
|
||||
|
||||
partial_len = strlen(partial_word);
|
||||
|
||||
/***** Loading the completion information from the registry *****/
|
||||
|
|
Loading…
Reference in a new issue